Hi all,
I was wondering if someone could help me out with this. I have the below code, which I'd like to adapt. At the moment it copies all data from cells A2:E500. However, what I'd like it to do is copy only the cells with data in those columns, so basically select and copy only the cells with data in it. So for example if the data only goes down to A20 then I only want it to copy A2:E20 and not A2:E500.
Can someone help!
Dim lst As Long
Sheets("Email Check").Range("A:E").Copy
With Sheets("KYC to Check")
lst = .Range("A" & Rows.Count).End(xlUp).Row + 1
.Range("A" & lst).PasteSpecial xlPasteColumnWidths
.Range("A" & lst).PasteSpecial xlPasteValues
Thanks!
Bookmarks