shahin
Active Member
Is there any way to continue writing new items (from the next line) in the variable "word_storage" using line continuation or something other than using "Array" what I've already learnt few days back? It is doing fine as long as i keep things in a line no matter how big it is.
My intention is to see the structure something like below. However, it throws an error.
Once again, I've learnt how to do the same using "Array" so i wish to have any solution the way i started here. Thanks a lot in advance.
Code:
Sub demo_one()
Dim word_storage As Variant, citem As Variant
word_storage = [{"Mango","Apple", "Kiwifruit", "Pear", "Pomegranate","1010","10piece"}]
For Each citem In word_storage
r = r + 1: Cells(r, 1) = citem
Next citem
End Sub
My intention is to see the structure something like below. However, it throws an error.
Code:
word_storage = [{"Mango","Apple", "Kiwifruit", _
"Pear", "Pomegranate","1010", _
"10piece","20piece","30piece"}]
Once again, I've learnt how to do the same using "Array" so i wish to have any solution the way i started here. Thanks a lot in advance.