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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-10, 10:58
hiteshkataria hiteshkataria is offline
Registered User
 
Join Date: Feb 2010
Posts: 22
Customized Toolbar

Hi,

I have created a Custom Toolbar with 2 controlbars having macro assigned to them. In one of my excel file, I have coded to show the toolbar on opening the file and before closing, hide the toolbar, as I have the macros in that excel file and I don't want to show those toolbars when other files are opened.

Now the problem is, somehow those toolbars were deleted and when I open that excel file, it throws the error, since the toolbars were deleted.

Can you please provide a solution/advice for this.
Reply With Quote
  #2 (permalink)  
Old 11-08-10, 15:01
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
When the file is opened I always delete and create toolbars from scratch.
[The delete is necessary in case the toolbar was not successfully deleted when the file was last closed.]

When the file is closed I always delete the toolbars.


I don't think I can be more specific than that with the current information on the thread, but I hope it helps...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
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