Hi folks.
I have a .xlsm spreadsheet with a number of .htm files in the same folder. The spreadsheet referrences the .htm files. I would like to know if there is a way to not having the need to define the path to open these files but to use the path that the .xlsm file was loaded from. This way I do not need to hardcode a path which will allow the spreadsheet to work no matter what falder it is placed in and the .htm's are in the same folder.
The code I'm trying to avid is below:
MyPath = "X:\Level 1\Pilot\Incident Reports\"
ChDrive MyPath
ChDir MyPath
In advance, thanks for the help...
I have a .xlsm spreadsheet with a number of .htm files in the same folder. The spreadsheet referrences the .htm files. I would like to know if there is a way to not having the need to define the path to open these files but to use the path that the .xlsm file was loaded from. This way I do not need to hardcode a path which will allow the spreadsheet to work no matter what falder it is placed in and the .htm's are in the same folder.
The code I'm trying to avid is below:
MyPath = "X:\Level 1\Pilot\Incident Reports\"
ChDrive MyPath
ChDir MyPath
In advance, thanks for the help...