shahin
Active Member
First off, sorry to everyone coming across this post as it may not be a core vba question. I was trying to figure out for the last few days whether there is any option in vba to create "LIST COMPREHENSION". But, I could not find any hint from anywhere. I tried something like below but that should never work as it is not the right way to do so. Can anyone tell me if I'm wasting my time to create something which is not possible in vba?
Tried something like below to get started:
Tried something like below to get started:
Code:
Sub Create_List()
Dim I As Variant, ILst As Variant
ILst = [I for I in [{1,2,3,4,5,6,7}]]
Debug.Print ILst
End Sub