Svgmassive
Board Regular
- Joined
- Nov 2, 2010
- Messages
- 113
I am trying to loop through names ranges to set up their values etc.I am using an array to store the name ranges i tried different methods i can't get it to work.Thanks
dim H_NAMES() as string
dim i as long
ReDim H_NAMES(1 To 4)
H_NAMES(1) = "test"
H_NAMES(2) = "east"
H_NAMES(3) = "west"
H_NAMES(4) = "north"
For i = LBound(H_NAMES) To UBound(H_NAMES)
Debug.Print Range(H_NAMES(i)).Address
next
dim H_NAMES() as string
dim i as long
ReDim H_NAMES(1 To 4)
H_NAMES(1) = "test"
H_NAMES(2) = "east"
H_NAMES(3) = "west"
H_NAMES(4) = "north"
For i = LBound(H_NAMES) To UBound(H_NAMES)
Debug.Print Range(H_NAMES(i)).Address
next