VBA code to merge data from different workbook into one Master File

Mandy_84

Board Regular
Joined
May 29, 2017
Messages
71
Hi!
Looking for a VBA code that copies a specific range in a certain tab from different passwordprotected files into one sheet of the Masterfile one after another.

- all workbooks in one folder
- one password for all workbooks
- the range is H36:K48 and to be pasted to sheet1 of the Masterfile range A:D
- the tab "Employee"

Thanks a lot!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi
No, I had missed the point about the files being password protected.
Why not just set file system permission on the location where the file sits?
Passwords on spreadsheets can easily be compromised with free tools on the internet.

If you did this then Power Query would work fine with any number of files and on refreshing would also add the data from any additional files added to the folder.
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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