Need a vba macro to combine sheets based on date in file name

blakecintx

New Member
Joined
May 26, 2024
Messages
1
Office Version
  1. 2007
Platform
  1. Windows
Long story short I work in a restaurant that had a TON of lotus sheets built for us. Well the times have called for us to finally ditch windows 7...and with that any and all lotus support. I've figured out the majority of our macros/scripts and managed to gets this sales_sheet to export into its own file titled "SALESDATE(MMDDYYYY).XLS". I need to create another sheet to take those files and combine them based on a date range input (ideally a popup). Pulling a sales range for say 05012024-05262024 which will combine those files to give me a single sheet. I included a screenshot of the lotus sheet we currently use to consolidate those files into one sales range.

Screenshot_2.jpg

Screenshot_3.jpg
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,216,500
Messages
6,131,015
Members
449,615
Latest member
Nic0la

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