Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keven, try one of the two examples, be sure to at least use parenthese
when declaring the array: Dim sSpreadShtNameRng() As String '\Range Name1 Dim sPwdNameRng() As String '\Range Name2 Dim sWriteResPwdNameRng() As String '\Range Name3 ReDim Preserve vaSpreadShtName(1 To 5) 'for dynamic (1 To VarriableHere) ReDim Preserve vaPwd (1 To 5) ReDim Preserve vaWriteResPwd(1 To 5) For iCounter = 1 To 5 Step 1 Debug.Print iCounter Debug.Print vaSpreadShtName(iCounter) Debug.Print vaPwd(iCounter) Debug.Print vaWriteResPwd(iCounter) Next iCounter OR... Dim sSpreadShtNameRng(5) As String '\Range Name1 Dim sPwdNameRng(5) As String '\Range Name2 Dim sWriteResPwdNameRng(5) As String '\Range Name3 HTH--Lonnie M. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading content of array formula | Excel Programming | |||
Reading a VBA Array - Thanks | Excel Programming | |||
Reading .csv file into array | Excel Programming | |||
reading an arbitrary selection into a 1D array | Excel Programming | |||
Reading a cell into an array | Excel Programming |