得到这个代码: Dim a, i As Long
With Range("K1", Range("K" & Rows.Count).End(xlUp))
a = .Value
End With
With CreateObject("Scripting.Dictionary")
.CompareMode = vbTextCompare
.Add "test", 1
如果我成立了一个字典作为这样的: set myDict = CreateObject("Scripting.Dictionary")
我问一个用户他的名字。 Wscript.StdOut.WriteLine "What is your name: "
name = Wscript.StdIn.ReadLine
然后我问用户五个数字。 Wscript.StdOut.WriteLine "E
我已经编写了代码来通过两列,其中一个将是密钥和其他项目/项目。它会通过并找到关键字,如果它找到了重复项,则会将它与前一个项目一起添加到项目中。当我尝试打印出物品时出现问题。键打印出来很好,但项目给我的运行时错误'13'类型不匹配。 这是代码。 Sub All()
Worksheets("All").Activate
Dim Server As Variant
Dim Application
我想从Active Directory中查询userAccountControl,并将其与我在脚本中设置的字典进行匹配。 所有设置我的字典对象首先和填充: dim uac
Set uac=Server.CreateObject("Scripting.Dictionary")
uac.add "512", "Enabled Account"
uac.add "514", "Disabled A