I have a range in my worksheet called DMM_Range which is 1 column wide by 50 rows. In VBA, I would like to refer to each row in the range in turn in a loop.
I tried the code below, but the "Index" command is not acceptable to VBA. Can anyone help?
Thanks,
MikeG
For d = 1 To t
Cur_DMM = Index(Range("DMM_Range"), d, 1)
'Do stuff based on Cur_DMM
Next d
I tried the code below, but the "Index" command is not acceptable to VBA. Can anyone help?
Thanks,
MikeG
For d = 1 To t
Cur_DMM = Index(Range("DMM_Range"), d, 1)
'Do stuff based on Cur_DMM
Next d