tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
According to this article:
what is the difference between section 5.2:
and section 5.4
I've written code such as:
but when I try to add named args such as:
it errors.
Can you not have named args with late binding?
Thanks
Rich (BB code):
what is the difference between section 5.2:
Rich (BB code):
With CreateObject("scripting.dictionary")
.Item("first") = "content"
End With
and section 5.4
Rich (BB code):
Set dict_snb = CreateObject("scripting.dictionary")
dict_snb.Item("first") = Date
I've written code such as:
Rich (BB code):
Dim DIC As Object
Set DIC = CreateObject("Scripting.Dictionary")
For n = 1 To TableArrayRows
DIC(TableArray(n, 1)) = n
Next n
but when I try to add named args such as:
Rich (BB code):
Dim DIC As Object
Set DIC = CreateObject("Scripting.Dictionary")
For n = 1 To TableArrayRows
DIC.Item(Keys:=TableArray(n, 1)) = n
Next n
it errors.
Can you not have named args with late binding?
Thanks
Last edited: