Let's assume that we have a C:\imaginary_folder\file.xml
You go and double click the file, it's opened to excel.
It's imported to a brand new workbook, named Book1.
Then suddenly you wish to save Book1, which at this point has no ActiveWorkbook.Path
However you wish to save Book1 as webpage. And you wish to save it to the same folder with the file.xml.
At this point you laugh at me and tell me to save it to C:\imaginary_folder\..
Sure, I know that. BUT Here comes the problem:
file.xml-files are opened to excel from random folders and each .xml-file should have its own ActiveWorkbook.Path when saving it with a macro.
I tried this code, but it keeps saving file.htm to C:\
Help me out here !
Bookmarks