AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,099
- Office Version
- 2019
- 2010
- Platform
- Windows
Obviously with a loop, but is there a better "Excel way" ?
I have
Set cr = .Range("Y" & Index & ":CP" & Index)
But I need to limit this to the last used cell letter before CP.
At the moment I'm doing this
Then I want this in a one-based 1D array.
Or should I just stick to a couple of loops ?
I have
Set cr = .Range("Y" & Index & ":CP" & Index)
But I need to limit this to the last used cell letter before CP.
At the moment I'm doing this
VBA Code:
x = 96
Do
x = x = 1
Loop Until .Cells(Index, x) = ""
Or should I just stick to a couple of loops ?