can you please write me a VBA module that will do the following: In sheet 'WF Assets'…
- User
can you please write me a VBA module that will do the following:
In sheet 'WF Assets' for each column A to CZ check the dates entered in each cell of the columns from row 2 to the last entry. If any cell contains a date that is before the current week, delete the cell and move the cells below in the column up. All columns contain a header in row 1 but not all columns contains dates in row 2 downwards.
In sheet 'SJ Assets' for each column A to AZ check the dates entered in each cell of the columns from row 2 to the last entry. If any cell contains a date that is before the current week, delete the cell and move the cells below in the column up. All columns contain a header in row 1 but not all columns contains dates in row 2 downwards.
In sheet 'Equipment & Vehicles' for each column A to Z check the dates entered in each cell of the columns from row 2 to the last entry. If any cell contains a date that is before the current week, delete the cell and move the cells below in the column up. All columns contain a header in row 1 but not all columns contains dates in row 2 downwards.
- Assistant
- User
It does not appear that the sheet 'Equipment & Vehicles' is accounted for in this line: lastCol = IIf(wsName = "WF Assets", 80, IIf(wsName = "SJ Assets", 52, 26))
- Assistant