Hello,
I need to create a workflow in VBA that meets the following criteria please.
I'm new to VBA so not great with code.
I receive multiple spreadsheets with various names.
I need to be able to have the code open each spreadsheet and copy data from ranges in each tabs, there are currently multiple tabs but for now I will just keep it to 2 tabs.
The data that is copied cannot overwrite the previous data copied so each time a new spreadsheet is opened the data copied from the tab must be added to the next available row of data in the main file.
I need this to have a button on the Main File so when I press the button it will open up the spreadsheets in a folder and start copying the selected data one by one until complete.
All help is very much greatly appreciated.
Here are the names of the files;
Files will be stored on Desktop\Report
Main File is called "Main Report"
The files I will be copying from will always be different names
The Tabs however on each file will always be the same in this case 2 tabs, Tab 1 called "Time", Tab 2"Cost"
The data that needs to be copied from these two tabs on each file will be stored in the "Main Report" with 2 Tabs named the same.
I also need something to show that there is an error so if for some reason I receive a file with the tab names changed by accident I will know.
The data ranges I need copied in Each Tab is from A to C:C everything in these columns down to the last row with data.
After the data is copied in each file the file needs to close and a new one open and when complete a message to say "Copying Complete"
Any further questions please let me know.
Thanks,
I need to create a workflow in VBA that meets the following criteria please.
I'm new to VBA so not great with code.
I receive multiple spreadsheets with various names.
I need to be able to have the code open each spreadsheet and copy data from ranges in each tabs, there are currently multiple tabs but for now I will just keep it to 2 tabs.
The data that is copied cannot overwrite the previous data copied so each time a new spreadsheet is opened the data copied from the tab must be added to the next available row of data in the main file.
I need this to have a button on the Main File so when I press the button it will open up the spreadsheets in a folder and start copying the selected data one by one until complete.
All help is very much greatly appreciated.
Here are the names of the files;
Files will be stored on Desktop\Report
Main File is called "Main Report"
The files I will be copying from will always be different names
The Tabs however on each file will always be the same in this case 2 tabs, Tab 1 called "Time", Tab 2"Cost"
The data that needs to be copied from these two tabs on each file will be stored in the "Main Report" with 2 Tabs named the same.
I also need something to show that there is an error so if for some reason I receive a file with the tab names changed by accident I will know.
The data ranges I need copied in Each Tab is from A to C:C everything in these columns down to the last row with data.
After the data is copied in each file the file needs to close and a new one open and when complete a message to say "Copying Complete"
Any further questions please let me know.
Thanks,