tanyaleblanc
Board Regular
- Joined
- Mar 16, 2019
- Messages
- 145
Hi, I'm trying to paste data from cell L1 (the word "Rental") to the last cell in column G, but it's pasting in the wrong cell, it should paste in cell G40 as that is the last blank cell, but it's pasting in cell G6988 and then I want it to copy the word "Rental" to the last cell that has data in column E
Code:
lrownew = Cells(Rows.Count, "E").End(xlUp).Row + 1 Range("E" & lrownew).PasteSpecial Paste:=xlPasteValues
lastrow = Cells(Rows.Count, "G").End(xlUp).Row
Range("L1").Select
Selection.Copy
lrownew = Cells(Rows.Count, "G").End(xlUp).Row + 1
Range("G" & lRow).PasteSpecial Paste:=xlPasteValues
Range("g:g" & lRow).SpecialCells(xlCellTypeVisible) = "Rental"
Last edited: