Diable a macro after use

  • Thread starter Thread starter Ian Mangelsdorf
  • Start date Start date
I

Ian Mangelsdorf

I have an application with a "Setup routine" I would like the users
to be able to run this routine once and then diable the routine. I am
using menu items so I thought there may be a way to disable the menu
item by using

ActiveWorkbook.CommandBars("&RCA Menu").Controls("Job Setup").Enabled
= False

Am I using command bars properly here and if so then what is the
correct way of disabling a command bar item

Cheers

Ian
 
Did you try just deleting the setup option from the menu at the end of the macro
 

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