Hello,
I am creating a macro in VBA, but I'm not a great programmer. I usually use the 'record' function and tweak the code to make edits. I would appreciate any and all advice/help!
I am trying to select the last two cells in a row and copy them to another sheet. When I record this macro it shows up as:
<< Range("A2").Select
Selection.End(xlToRight).Select
Range("P2:Q2").Select
Selection.Copy>>
The problem with this is that it isn't sustainable. The most recent data (the cells I want to copy) might not always be in cells p2 and q2. Ultimately I just want to copy the LAST TWO CELLS (furthest to the right), regardless of their position. Is there a code to do this?
Thanks!
Bookmarks