PC Review


Reply
Thread Tools Rate Thread

Deleting menu

 
 
=?Utf-8?B?bWFydGlqbjYwMA==?=
Guest
Posts: n/a
 
      8th Oct 2007
Hello,

At the moment I am dealing with the following problem:
A template file contains a menu.
This template file may be opened multiple times, it is checked for the name
in the toolbar to prevent adding the menu multiple times.

Now my question is:
How can I make sure that at closing the files, the menu is only deleted when
no file is open anymore that uses the template?

I have tried this by counting in the un-used member Parameter of
Application.Toolbar(<name menu>) the number of time the template has been
opened but this doesn't work because at opening the file when the value
should be incremented, an empty string is returned.

Hope to get some help soon,
Martijn
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      8th Oct 2007
Why don't you modify you current function to test for an empty string and
disable the menu if the string is Null?

"martijn600" wrote:

> Hello,
>
> At the moment I am dealing with the following problem:
> A template file contains a menu.
> This template file may be opened multiple times, it is checked for the name
> in the toolbar to prevent adding the menu multiple times.
>
> Now my question is:
> How can I make sure that at closing the files, the menu is only deleted when
> no file is open anymore that uses the template?
>
> I have tried this by counting in the un-used member Parameter of
> Application.Toolbar(<name menu>) the number of time the template has been
> opened but this doesn't work because at opening the file when the value
> should be incremented, an empty string is returned.
>
> Hope to get some help soon,
> Martijn

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting menu (xla) =?Utf-8?B?cmF2aQ==?= Microsoft Excel Programming 2 10th Aug 2005 09:00 PM
Deleting Menu =?Utf-8?B?cmF2aQ==?= Microsoft Excel Programming 2 4th Aug 2005 03:59 PM
deleting "Delete Record" option from Edit pull down menu on menu b =?Utf-8?B?VGVk?= Microsoft Access Forms 3 28th Feb 2005 01:27 AM
Deleting a Menu Bar Sophie Microsoft Excel Programming 5 18th Jul 2004 08:29 PM
Deleting a Top Menu Bar item? Joseph Microsoft Word New Users 1 11th Mar 2004 06:49 AM


Features
 

Advertising
 

Newsgroups
 


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