This is a quick example. You can test this out if you would like. Run this from that main workbook you just uploaded. Create a blank workbook and save it as the job name. I set the below to your network drive but you could create a local folder on your desktop with this workbook and the one you intend to split to and test it that way. Just change the line with the drive to match your setup correctly. Make sure that your file format below is set correctly (xls or xlsx)! This however, will not create a new workbook, yet, so if you want to test it, make a blank workbook. You can step through it to see what it does by using "F8" in the vba editor
Things to do yet:
- Check if workbook exists, if not, then create workbook in the network drive directory, and paste the data
- apply the code to cell A20 to do the same thing as above
- Clear out your data
I think you would run this macro after running your user form, and you can chain them together. Once you change the status of the opened excel to invisible, it should appear to seamlessly insert your data into a new file. I will work on the rest of this tomorrow for you, assuming someone else doesn't beat me to it
Bookmarks