Macro to copy data between files based on date

tjsisley

New Member
Joined
Apr 28, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I have a requirement to create a macro that copies data from one file to a second file based on a date. I have a vision of the end user enters the relevant date in a pop up box and then the macro runs and saves the destination file with the new data. The destination file is in a shared location that all team members have access too.

The source file's are named, "FTA Report" & the data in YYYY-MM-DD, this format is always consistent, the file can have up to 4 sheets, however if that sheet is blank for a specific day then there will be no sheet for that day.
The destination file is also housed in the same area as the shared drive.

Below is the format for each cell - Column A is the date that defines which data is copied over
ABCDEFGHIJKL
dateintintintstringstringintstringdatetimedatetimestringstring

thanks for any help guys!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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