Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't get the following procedure to work... according to the help files,
it should work but doesn't. I get a "Compile error: Can't assign to array" when vColumns = Array("A", "B", ...). Does anyone know why and how to fix? Thanks! :-) Public Sub Suffy() Dim vColumns(6) As Variant Dim i As Integer vColumns = Array("A", "B", "C", "D", "E", "F", "G") For i = 1 To 7 Step 1 Debug.Print sColumns(i) Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Working with ranges in arrays... or an introduction to arrays | Excel Programming | |||
Arrays - declaration, adding values to arrays and calculation | Excel Programming | |||
excel arrays | Excel Programming | |||
arrays in excel | Excel Worksheet Functions | |||
Arrays in Excel VBA | Excel Programming |