Hi..first post here ..im quite new to vba and have lost my way a bit, can you help? I need to put together a macro that compares
a pair of similar worksheets. Ive read lots of similar posts but havnt had any luck adapting the advice i found about similar cases:
- Each day I produce a report which has 4 columns.
- I copy and paste each report into a single workbook but put them on different worksheets which are named 'today' and 'yesterday'.
- I want to compare each row on the 'today' worksheet with each row on the 'yesterday' worksheet.
- The entries in each field are alpha numeric and can have spaces and other characters.
- If all the cells in any individual row on the 'today' report do not match exactly any row on the 'yesterday' report then i need the macro to cut and paste this row from worksheet 'today' into another worksheet called 'active'.
- If all the cells in any individual row on 'today' report match exactly any row on 'yesterday' report then i need the macro to cut and paste this row into a worksheet called 'archive'.
I’ve attached an excel file with some example data in it.
The macro needs to be able to cope with assorted data in each cell and also the reports have different numbers of rows each day.
The number of columns and the titles of each column always remain the same.
Bookmarks