Public Function setArraytoDic(ByRef strArray As Variant) As Dictionary
Dim i As Long
Set setArraytoDic = CreateObject("Scripting.Dictionary")
For i = 0 To UBound(strArray)
setArraytoDic.Add strArray(i), i + 1
Next i
End Function
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00