LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Bottons Fail After Moving File

See answer to your first posting. Plus

http://msdn.microsoft.com/library/en...ce04042002.asp

--
Regards,
Tom Ogilvy


"Dave Brodak" wrote in message
...
I've created a custom toolbar with buttons, created and assigned macros to
the buttons. Clicking the buttons runs the macros as expected.

But I have a problem if I save the file (in FOLDER1 for my example), move
the file to another folder (FOLDER2) on the local hard drive using Windows
Explorer, and then open the file located in the new folder (FOLDER2).

When I
click the buttons, a dialog box pops up saying that the macro can not be
found, with an error that references the original folder location

(FOLDER1)
where the file/toolbar/macro was originally created and saved.

I've tried the following solutions, all of which have failed:
1. Saving the macros in the Personal Macro Workbook before saving and

moving;
2. Attaching the toolbar to the file before saving and moving;
3. Consulted all of the HELP for macros and toolbars, but nothing is
mentioned about the limitations of toolbar macros working when moving a

file
to another folder.

If I do a SAVE AS, save the file in different folder (FOLDER3), close

Excel
completely, restart Excel, open the new file now located in the new folder
(FOLDER3), clicking the buttons works. But if I then close the new file,
open the original file in the original folder (FOLDER1) and click the
buttons, the error now reads that the macro can not be found and

references
FOLDER3.

It seems as if the toolbar button macros will only work when the file is
opened in the folder where it was last saved, not moved to.

I really need to be able to move the file around to different folders

using
Windows Explorer and have the buttons work properly. What am I missing?
Thanks in advance.

--
Dave Brodak



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fail to link a pdf file in excel 2003 with Adobe Acrobat 7.0 Prof eva cheng Excel Discussion (Misc queries) 0 December 2nd 09 07:40 AM
Moving workbook to memory stick - hyperlinks fail Brucear Excel Discussion (Misc queries) 2 September 18th 06 12:32 AM
Buttons Fail After Moving File to Different Folder Dave Brodak Excel Programming 1 December 23rd 05 04:52 PM
Macros fail if file saved in another location PaulM Excel Programming 1 November 9th 04 03:17 PM
"Radio Bottons" grin2000[_15_] Excel Programming 1 July 6th 04 07:46 AM


All times are GMT +1. The time now is 09:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"