Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default determinate if pop up menu exists

I have made a pop up menu which is called by (workbook activate)
How can i determinate whith vba if the pop up menu exists in order not to
create it again when the workbook is reactivate .
p.s. I don't want for some reasons to put the code at (workbook open).


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default determinate if pop up menu exists

Gus,

Here is one way

Set cbcCustomMenu = Application.CommandBars("Worksheet Menu
Bar").Controls("MyMenu")
If cbcCustomMenu Is Nothing Then
'add your menu item
End If

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"GUS" wrote in message
...
I have made a pop up menu which is called by (workbook activate)
How can i determinate whith vba if the pop up menu exists in order not to
create it again when the workbook is reactivate .
p.s. I don't want for some reasons to put the code at (workbook open).




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
Show it here, if it exists there Kevin Excel Discussion (Misc queries) 5 July 28th 07 06:21 PM
VBA:: determine if UDF exists? George[_3_] Excel Discussion (Misc queries) 1 May 7th 07 12:57 PM
Need help with a function I'm not sure exists Cervantes Excel Worksheet Functions 7 August 16th 05 06:38 AM
determinate if a range is empty GUS Excel Programming 2 October 30th 03 01:00 AM
Worksheet Exists... James Weaver Excel Programming 3 October 6th 03 02:56 PM


All times are GMT +1. The time now is 11:03 AM.

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"