Deleting menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Why don't you modify you current function to test for an empty string and
disable the menu if the string is Null?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top