Hi ,
Actually I was trying to run the subroutine to select a Single Column from the Active cell and Drag the selection to the Last Row (The Single Column and Multiple Rows are having some blank cells which are to be skipped). The code below doesn't give the desired result
I would appreciate if anyone could help to run the subroutine to select the same from the Active Cell
I have tried the below code but it is not giving the desired result.
Thanks in anticipation
Actually I was trying to run the subroutine to select a Single Column from the Active cell and Drag the selection to the Last Row (The Single Column and Multiple Rows are having some blank cells which are to be skipped). The code below doesn't give the desired result
I would appreciate if anyone could help to run the subroutine to select the same from the Active Cell
I have tried the below code but it is not giving the desired result.
VBA Code:
Sub MyLastRowSamecolumn()
Dim myCurrentColumn As Long
Dim myLastRow As Long
myCurrentColumn = ActiveCell.Column
myLastRow = Cells.Find(What:="*", After:=Cells(1, 1), _
Lookat:=xlPart, LookIn:=xlFormulas, SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, MatchCase:=False).Column
Range(ActiveCell, Cells(myCurrentColumn, myLastRow)).Select
End Sub
Thanks in anticipation