I have written an excel macro that parses a list of URL's, saving back information from the worksheet to each URL.
I have created a button on the ribbon to run the macro.
The macro is stored in a file of its own, as the files with the URL's are uniquely generated each time.
When I hit the button to run the macro, and the file is not loaded. Excel will load the file and open a window, showing the Macro file with an empty worksheet.
Then it will run the macro, on the newly opened macro file, instead of the URL-file where I started the macro.
In fact, one or two of the first rows in the URL file will be handled by the macro, before it switches focus I guess.
Can this be fixed, so I can run the macro from the button in a correct way even if the macro file is not loaded first? Or, second option, the macro file is opened if it wasn't already, but then stops, not executing any of the rows?
Thanks, Thomas