#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Menu Bars

Hello,

I have written a macro to produce a new menu bar. However in some cases it
may already exist. I am struggling to write a pice of code that loops through
the current menu bars and identifies if a specific bar is already present.
Any Thoughts?

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Menu Bars

Hi

You can do this before you create it


On Error Resume Next
Application.CommandBars("MyToolBar").Delete
On Error GoTo 0

' Your code that create the bar


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Neil Hopkinson" wrote in message
...
Hello,

I have written a macro to produce a new menu bar. However in some cases it
may already exist. I am struggling to write a pice of code that loops through
the current menu bars and identifies if a specific bar is already present.
Any Thoughts?

Many Thanks



Reply
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
Menu Bars Neil Hopkinson[_2_] Excel Programming 1 August 31st 05 10:02 PM
Lost all my menu bars and tool bars CathyJ Excel Discussion (Misc queries) 3 August 8th 05 12:49 PM
New Menu on Worksheet & Chart Menu Bars Juan[_3_] Excel Programming 2 May 21st 04 11:46 PM
linking chart menu bars and worksheet menu bars majikman[_8_] Excel Programming 0 May 10th 04 09:45 PM
menu bars majikman[_5_] Excel Programming 1 May 10th 04 09:05 AM


All times are GMT +1. The time now is 06:43 PM.

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

About Us

"It's about Microsoft Excel"