Jeffreyxx01
Board Regular
- Joined
- Oct 23, 2017
- Messages
- 156
Hi guys, I got some problems
Can someone help on my code, it highlight the lastrow in yellow.
Thanks.
Can someone help on my code, it highlight the lastrow in yellow.
Thanks.
Code:
Sub copydata()
Dim LastRow As Long
Sheets("Datadump").Range("E:G,S:S,AW:AW,AY:AY,BE:BE,CC:CC,CF:CV").Copy
With Worksheets("Clean")
LastRow = .Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
.Range("A1:Y" & LastRow).ClearContents
.Range("A1").PasteSpecial xlPasteValues
End With
End Sub
Last edited: