Disablme

M

med111

Hello all,

In Project pro, I added my custom CommandBarButton to the "collaborate
menu".
I want to disable this commandBarButton when the project is readonly
or not published? How can I do it?

First, how can I know that a project is published in VBA (I alredy
know when a project is readonly: use property readonly in VBA)

Second, Is there a difference betwenn ActiveProject.CommandBar and
Application.CommandBar

Third (I already know ) I must set customCommandBarButtom.Enabled =
false/True in some events (publishing,open project, any more?)
 

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

Top