Over here you have to change it to "Sheet1"
Capture3.jpg
Over here you have to change it to "Sheet1"
Capture3.jpg
Either:
In the VBE, go to Tools|References… and tick Microsoft Scripting Runtime
2023-03-27_142848.jpg
or:
change the lines:
to:Dim rebars2 As Scripting.Dictionary Set rebars2 = New Scripting.Dictionary
and change the line:Dim rebars2 As Object Set rebars2 = CreateObject("Scripting.Dictionary")
to:lb.AddItem rebars2.Items(i) & " - " & rebars2.Keys(i)
lb.AddItem rebars2.Items()(i) & " - " & rebars2.Keys()(i)
p45cal
Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.
I don't know, I just did a bit of research and that's what's needed if you use late binding (that is, if you're not using the Microsoft Scripting Runtime reference)
ps, don't quote the whole post, I didn't notice at first that you'd added a question in among the quote.
p45cal
Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.