Harshil Mehta
Board Regular
- Joined
- May 14, 2020
- Messages
- 85
- Office Version
- 2013
- Platform
- Windows
I am trying to copy data dynamically from Cell C1:G till the last row in any of the column in the Range.
Attached is the snapshot in which the highlighted area is something I want to copy.
Could any one please help me out?
Attached is the snapshot in which the highlighted area is something I want to copy.
Could any one please help me out?
VBA Code:
Sub TEST1_1()
Dim lrc As Long
lrc = Cells.Find(What:="*", _
After:=ThisWorkbook.Worksheets("Dashboard").Range("A1"), _
LookAt:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
Range("C1:G" & lrc).Copy
End Sub