Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
List need to be a variant or not declared. Arrays by default start at 0 index
Sub test() Dim List1 List1 = Array("aaa", "bbb", "ccc") For i = 0 To 2 MsgBox List1(i) Next End Sub "John" wrote: How do I create a list of strings that I can cycle thru via a for loop something like this. I can't get the syntax right, not being much of a VB guy. Dim List1() as String List1 = {"aaa", "bbb", "ccc"} For i = 1 to 3 MsgBox List1(i) Next I appreciate your help, -John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trying to search an Array of Strings | Excel Programming | |||
Creating strings for legend | Excel Discussion (Misc queries) | |||
question about creating variable from 2 strings | Excel Programming | |||
Array of Strings | Excel Discussion (Misc queries) | |||
Counting Strings in an Array | Excel Programming |