I am new to VBA. I am working on one file which needs to copy the data from another file which is located in different folder.
Folder 1 --> Main File---> Dashboard
to Folder 2 --> Calculations---> Master File
Now the macro is to be executed from the "Dashboard" worksheet and the data is to be copied from the "Master File" and to be pasted in "Dashboard".
I tried few codes but they didn't help.
Please help me out.
This is a generic copy values macro I use, hopefully will put you on the right path.
Edit
Since you are setting workbook 1 as the workbook that is running the vba, in the above you will get errors because workbook 1 is indeed already open.
Try below code to transfer data values from 'this workbook' to workbook 2: