ankita.sethi
Board Regular
- Joined
- Apr 27, 2011
- Messages
- 58
Hi
I am pretty new in VBA. I am trying to find out how to find the name of the last column in a row (say row 1).
I tried using:
LCol = Range("A1").End(xlToRight).Column
But this returns the 'number' of the last cell in that row.
For example, if the last cell is G1 in the first row, I want "G" instead of "7".
Any help will be appreciated.
Thanks,
Ankita
I am pretty new in VBA. I am trying to find out how to find the name of the last column in a row (say row 1).
I tried using:
LCol = Range("A1").End(xlToRight).Column
But this returns the 'number' of the last cell in that row.
For example, if the last cell is G1 in the first row, I want "G" instead of "7".
Any help will be appreciated.
Thanks,
Ankita