I have a custom Excel add-in that contains functions used by multiple users to run spreadsheets. This add-in is located on the C drive in the same directory on each users machine. This works fine when the users open spreadsheets that are located on their local C drive, but problems arise when spreadsheets are opened from shared network drives and Excel cannot find the location of the add-in.
Example: If a spreadsheet is opened from the P drive, Excel looks for the add-in on the P drive. When it can't find it, it put's an invalid path name in the formula bar with the incorrect drive letter (P instead of C). This can be fixed either by re-mapping the add-in to the C drive or by doing a find/replace to basically remove this file path from the formula bar.
My question is if there is a way to automate this so that Excel looks for this add-in on the C drive, regardless of which shared drive it might be opened from?
Any advice or suggestions would be greatly appreciated.
Thanks!
Example: If a spreadsheet is opened from the P drive, Excel looks for the add-in on the P drive. When it can't find it, it put's an invalid path name in the formula bar with the incorrect drive letter (P instead of C). This can be fixed either by re-mapping the add-in to the C drive or by doing a find/replace to basically remove this file path from the formula bar.
My question is if there is a way to automate this so that Excel looks for this add-in on the C drive, regardless of which shared drive it might be opened from?
Any advice or suggestions would be greatly appreciated.
Thanks!