Eurekaonide
Active Member
- Joined
- Feb 1, 2010
- Messages
- 433
Dear All
I have a formula VBA code to find the last row but how do you find the last cell entered in the columns to the right.
the code I wouls use for the last row is;
LastRow = Range("A" & Rows.Count).End(xlUp).Row
I tried this but thst didnt work;
Lastcolumn = Range("2" & Columns.Count).End(xlLeft).Column
I have a formula VBA code to find the last row but how do you find the last cell entered in the columns to the right.
the code I wouls use for the last row is;
LastRow = Range("A" & Rows.Count).End(xlUp).Row
I tried this but thst didnt work;
Lastcolumn = Range("2" & Columns.Count).End(xlLeft).Column