I am using the following to select the last cell of Column A:
Range("A"& Rows.Count).End(xlUp).Select
This of course works, but only for Column A.
I need to dynamically change "A" to the Column LETTER of the ActiveCell so that the last cell in the ActiveCell column is selected when I run this code (rather than hardcoding the column).
I have tried:
Range(ActiveCell.Column & Rows.Count).End(xlUp).Select
but it returns the NUMBER of the Column so that does not work.
Can you pls suggest code that wld simply return the ActiveCell column letter to replace "A" in the Range arguement.
Thanks
JDTTEK
Range("A"& Rows.Count).End(xlUp).Select
This of course works, but only for Column A.
I need to dynamically change "A" to the Column LETTER of the ActiveCell so that the last cell in the ActiveCell column is selected when I run this code (rather than hardcoding the column).
I have tried:
Range(ActiveCell.Column & Rows.Count).End(xlUp).Select
but it returns the NUMBER of the Column so that does not work.
Can you pls suggest code that wld simply return the ActiveCell column letter to replace "A" in the Range arguement.
Thanks
JDTTEK