Hello,
I can't find any topics on this issue.
I create a button using vba and assign a macro using onaction.
The macro continues and saves the file to c:\data\temp\
Everything works fine with the button at this point. I can also saveas to a different drive (shared drive for example) z:\
The button still works in the new location.
Now, if I drag and drop (copy/paste) the file from c:\data\temp into z:\data\temp the button stops working. It says z:\data\macro.xla'!copy does not exist.
Any insights as to how I can hard code the drive letter into the button so that I can freely move the files around and not have to saveas in order to move it?
Thanks!
I can't find any topics on this issue.
I create a button using vba and assign a macro using onaction.
Code:
.OnAction = "'c:\data\macro.xla'!copy"
Everything works fine with the button at this point. I can also saveas to a different drive (shared drive for example) z:\
The button still works in the new location.
Now, if I drag and drop (copy/paste) the file from c:\data\temp into z:\data\temp the button stops working. It says z:\data\macro.xla'!copy does not exist.
Any insights as to how I can hard code the drive letter into the button so that I can freely move the files around and not have to saveas in order to move it?
Thanks!