forotherruns
New Member
- Joined
- Nov 23, 2011
- Messages
- 2
Hello
I have a very large workbook with a number of similar worksheets. In each sheet there is a column (say column O) with dates. I need a macro to cut an entire row(s) and place it in the first available (empty) row of a new sheet based on the date.
For example if in Sheet1 (named "2011"), when any date in column O is equal to TODAY or earlier (i.e. the date has passed), I want the macro to cut those rows from the sheet 2011 and place in the new sheet (say "Expired") starting from the first available row.
I would also want the macro to be able to do the same for other sheets, cut the expired rows and place them in the "Expired" sheet in the first empty row below all the other entries that are already there.
Any help on this will be greatly appreciated.
Cheers!!!
I have a very large workbook with a number of similar worksheets. In each sheet there is a column (say column O) with dates. I need a macro to cut an entire row(s) and place it in the first available (empty) row of a new sheet based on the date.
For example if in Sheet1 (named "2011"), when any date in column O is equal to TODAY or earlier (i.e. the date has passed), I want the macro to cut those rows from the sheet 2011 and place in the new sheet (say "Expired") starting from the first available row.
I would also want the macro to be able to do the same for other sheets, cut the expired rows and place them in the "Expired" sheet in the first empty row below all the other entries that are already there.
Any help on this will be greatly appreciated.
Cheers!!!