From the main worksheet, the tab called "collected" is copied, then a new workbook is added, then the data copied then gets pasted. This new workbook is then saved and closed. My question was how do I make the main worksheet as the active window again?
When I was running it from my local drive, I've no problem making active again by adding a line to make the main worksheet active. When I loaded it to a webpage, the main worksheet would open up in the internet browser so the command "windows(filename).activate" doesn't work anymore.
Bookmarks