If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Is Excel Custom Toolbar Right for the Job

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-04, 23:30
JerryDale JerryDale is offline
Registered User
 
Join Date: Feb 2004
Location: California, Bay Area
Posts: 2
Question Is Excel Custom Toolbar Right for the Job

I decided to use a custom toolbar button for an Excel 2000 spreadsheet instead of a command button on the sheet. When I move the workbook to another directory on a different computer, and click the custom button, it does not work. When I edit the properties and choose assign macro, I see that is is assigned to the correct macro name but in the directory name where the workbook was created. Unfortunately the error message I got had nothing to do with finding the macro, but stated that a workbook with the same name was already open, and this was not in debug mode. Putting a debug break point in the macro had no effect.

Question: is the custom toolbar button the wrong tool to use, especially in a workbook that will be distributed to others?

Thanks.
Jerry
Reply With Quote
  #2 (permalink)  
Old 02-21-04, 00:28
JerryDale JerryDale is offline
Registered User
 
Join Date: Feb 2004
Location: California, Bay Area
Posts: 2
This change made it work: I moved the VBA code behind the custom toolbar buttons from Module1 to "Sheet1 (Sheet1)", re-assigned the "sheet1" macro to the button, and now the process does not look in a specific directory for the macro as it previously did.
This part is solved.

Now if anyone has insite about what impact custom toolbar buttons will have on a distributed workbook, I would appreciate your advice. If I automatically make them invisible when closing the workbook, and distribute the workbook for others to use, will they have the "invisible buttons" forever on their toolbars, that started with my workbook?

Thanks.
Jerry
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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