Macro to compare multiple workbooks in two folders in Excel 2007

plant007

Board Regular
Joined
Jun 2, 2011
Messages
55
Office Version
  1. 2019
Platform
  1. Windows
Good morning

I have had some really great support on this forum previously and I am keeping my fingers crossed that you may able to help me with the conundrum below. I am going to be taking a VBA course soon so hopefully I will be able to return the favour some day!

I collect data quarterly from multiple sources by sending out data collection forms (a workbook with 4 worksheets) pre-populated with the previous quarters data (so as to help sources fill in the forms).

I would like to be able to compare and highlight differences between the data sent out pre-populated and the data recieved back from the sources. Pre and post data file names (in this case, project names) will stay the same although they will be stored in two different folders (Q2 pre and Q2 post).

My aim is to compare across these two folders so that differences between the same-named files (although different dated workbooks) are highlighted in a new workbook, with each difference noted alongside the workbook/worksheet name

I am finding macros on the various sites that compare ranges in open workbooks or compare sheets but none that compares workbooks with the same name in different folders

Hope this explanation is clear but happy to provide additional information if the above does not make sense

Thanks in advance for any help
Andrew
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Thankyou for asking and yes - an internal Excel / VBA whizz who we managed to grab for a couple of weeks sorted it
 
Upvote 0
Thankyou for asking and yes - an internal Excel / VBA whizz who we managed to grab for a couple of weeks sorted it

I guess I should have followed with my first question. Can you share the solution or is something your work paid for?
 
Upvote 0
It was a work solution but I can tell you we used VLOOKUP equations to compare data in the current set to data in the previous dataset
 
Upvote 0
Ok sounds good, thanks for the reply. I actually got it figured out last night on a very limited basis so all is good.
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top