floridagunner
Board Regular
- Joined
- Jul 20, 2007
- Messages
- 60
Hello I need help with a macro to select all the rows in the column of the active cell.
The number of rows that are selected are based on the number of rows with data in column A.
However I'm getting an error when I use the code below:
Can anyone help me in correcting this code ?
Thanks
End Sub
The number of rows that are selected are based on the number of rows with data in column A.
However I'm getting an error when I use the code below:
Code:
Sub SelectColumn()
Dim CC As Long
myfield1 = ActiveCell.Column
CC = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Offset(-1, 0).Row
Range(Column, Cells(lr, myfield1)).Select
End Sub
Can anyone help me in correcting this code ?
Thanks
End Sub