ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sticky filepaths at Assign Macro step (https://www.excelbanter.com/excel-programming/444222-sticky-filepaths-assign-macro-step.html)

Hunter O'Connell

Sticky filepaths at Assign Macro step
 
When I assign a macro to a tool, the filepath appears to be relative,
i.e. '[filename]'![macroname].

When I move the file or e-mail it, it will read '[driveletter]\
[foldername]\[filename]'![macroname].

Is there code to make the filepath remain relative, as in the first
example above?

Dave Peterson[_2_]

Sticky filepaths at Assign Macro step
 
I don't think so.

You could write a macro that would reassign the macros, but before you do that,
check your other post. I think that solution is easier.

On 02/09/2011 12:48, Hunter O'Connell wrote:
When I assign a macro to a tool, the filepath appears to be relative,
i.e. '[filename]'![macroname].

When I move the file or e-mail it, it will read '[driveletter]\
[foldername]\[filename]'![macroname].

Is there code to make the filepath remain relative, as in the first
example above?


--
Dave Peterson


All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com