标题: 类型不对怎么回事? [打印本页] 作者: sznt 时间: 2008-5-2 22:24 标题: 类型不对怎么回事? Private Sub CommandButton2_Click()
Dim pf As String
pf = InputBox("请输入数据库所在盘符:")
MsgBox ("你确认盘符" & pf & " ")
Sheets("Sheet2").Select
If a1 = "" Then
Sheets("sheet2").Range("A1:i20000").Select
Selection.ClearContents
'Selection.QueryTable.Delete
Sheets("sheet2").Range("i20000").Select