为什么VBA使用on error resume next仍然出错 5
Sub获取所有客户姓名()OnErrorResumeNextDimItemAsIntegerWithCreateObject("scripting.dictionary"...
Sub 获取所有客户姓名()
On Error Resume Next
Dim Item As Integer
With CreateObject("scripting.dictionary")
For Item = 1 To 5
'Sheets("合同明细表").Cells(4, "I").End(xlDown).Row
.Add Cells(Item, "A").Value, ""
Next Item
MsgBox Join(.Keys, ",")
End With
End Sub
'Sheets("合同明细表").Cells(4, "I").End(xlDown).Row
这句话可忽略 展开
On Error Resume Next
Dim Item As Integer
With CreateObject("scripting.dictionary")
For Item = 1 To 5
'Sheets("合同明细表").Cells(4, "I").End(xlDown).Row
.Add Cells(Item, "A").Value, ""
Next Item
MsgBox Join(.Keys, ",")
End With
End Sub
'Sheets("合同明细表").Cells(4, "I").End(xlDown).Row
这句话可忽略 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询