I want to select the last column and 2nd last column in my spreadsheet.
I’ve found my last column by:
LastColumn = Sheets("Sheet1").Cells.Find("*", [a1], , , xlByColumns, xlPrevious).Column
On Error GoTo 0
Then I’m trying to use the LastColumn to select from the 2nd last column to the last column and copy and paste.
Sheets("Sheet1").Columns(LastColumn - 1:LastColumn).Select
but it doesn’t seem to work. Can someone please help and to what I may have gone wrong.
Thanks
Sheets("Sheet1").Columns(LastColumn - 1).SelectEDIT: thanks Doug for pointing out my error…
Sheets("Sheet1").Columns(LastColumn - 1).Resize(,2).Select