Hi,
I have a named range in my worksheet. Now from that range (In col A) I like to select down until lastrow (which I have already dimmed as lastRow as object) and copy. How can I do that in code. Please help.
thank you
Jaz
Hi,
I have a named range in my worksheet. Now from that range (In col A) I like to select down until lastrow (which I have already dimmed as lastRow as object) and copy. How can I do that in code. Please help.
thank you
Jaz
Try this as an example
Sub Test()
Dim LastRow As Object
Set LastRow = Cells(24, 1)
Range(Cells(Range("MyRangeName").Row, 1), Cells(LastRow.Row, 1)).Copy
End Sub
Martin
Thank you Mrice.
Jaz
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks