Human_doing
Board Regular
- Joined
- Feb 16, 2011
- Messages
- 137
Hi,
I wonder if anyone could please help with VBA code to find the last column of a worksheet with any cells with data and then select that row plus the three before it?
Reason is I am programming some VBA that will need to select the most recent 4 months data and copy/paste to another document. So if the worksheet is similar to this example:
Month 1 2 3 4 5
Entrys 3 4 5 6 7
I would only be looking at copying columns C-F, next month D-G etc.
Thanks
I wonder if anyone could please help with VBA code to find the last column of a worksheet with any cells with data and then select that row plus the three before it?
Reason is I am programming some VBA that will need to select the most recent 4 months data and copy/paste to another document. So if the worksheet is similar to this example:
Month 1 2 3 4 5
Entrys 3 4 5 6 7
I would only be looking at copying columns C-F, next month D-G etc.
Thanks
Last edited: