|
楼主 |
发表于 2017-7-22 15:07
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 Zhjonhse 于 2017-7-22 19:44 编辑
老师,您好!
运行有点问题。如下:End With
Sheet1.Activate
[a4].Resize(50000, UBound(Arr1, 2)).ClearContents
gjc = InputBox("请输入关键字:", "复制关键字")
If gjc = "" Then MsgBox "关键字不能为空": Exit Sub
If d.exists(gjc) Then
t = d(gjc)
t = Left(t, Len(t) - 1)
If InStr(t, ",") Then
aa = Split(t, ",")
For j = 0 To UBound(aa)
Cells(j + 4, 1).Resize(1, UBound(Arr, 2)) = Application.Index(Arr, aa(j), 0)
再说明下:我的源库里面有日期、文本、时间和数字格式,是不是这些在作怪呢。
当运行到上面最后一行时,出错了,错误代码:13,显示类型不匹配。
请指教! 谢谢老师!
|
|