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 > Toolbar help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-04, 19:35
Jeeper74 Jeeper74 is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
Question Toolbar help

I made a custom toolbar and I am having troubles with it. I found out some more info from the help files in excel. My macros are not the problem (I origonally thought that they were updating), what is happening is in the custom menus I have made up. The macro that I assign to a button is updated when I save it as a new file name. For example

The original assigned macro for the button "2 Lane - Horizontal" in the Traffic program was

'Traffic.xls'!twolaneh

But after I draw the road that I need, I saved it as 318.xls ( that is the section of road I am needing the plan for). The next time that I open Traffic, and go to use that button again (it only does it on the buttons that I previously used), it wants to open 318.xls because the assigned macro on the button is

'D:\Documents and Settings\Master\Desktop\318.xls'!twolaneh

All of the buttons that were not used to make up "318" when I was drawing it are still the way I assigned them.

Is there a way that this can be made to stop updating the assigned macro for a button in "Traffic" but update for "318", so it works in both without the need to open a second file?

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 04-28-04, 20:27
Smitty Smitty is offline
Registered User
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 153
Like with your other post, use Control Toolbox buttons and add your code sheet specifically. That way the code is boiund to the button, not the other way around and therefore, no file references to change.

HTH,

Smitty
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