none
How to grayout a custom button in a Project 2010 ribbon? RRS feed

  • Question

  • Hello,

    In Project 2010 I have two custom buttons. When one is active , the other needs to be inactive.

    How can we do that with VBA?

    Thanks for your help 

    Monday, October 3, 2016 8:02 AM

Answers

  • You can see and example of how to do it on this page: http://www.accessribbon.de/en/index.php?Access_-_Ribbons:Callbacks:getEnabled.

    The page is for Access but the XML and calback are the same for Project.

    • Marked as answer by WLID1966 Monday, October 3, 2016 5:46 PM
    Monday, October 3, 2016 1:33 PM

All replies

  • You can see and example of how to do it on this page: http://www.accessribbon.de/en/index.php?Access_-_Ribbons:Callbacks:getEnabled.

    The page is for Access but the XML and calback are the same for Project.

    • Marked as answer by WLID1966 Monday, October 3, 2016 5:46 PM
    Monday, October 3, 2016 1:33 PM
  • Bill

    Do we really need XML to do that?

    I'm using VBA, not XML :(

    Thanks

    Monday, October 3, 2016 3:52 PM
  • I'm not sure that you can add callbacks through the Visual Studio user interface. If you can add a callback for getEnabled that way, great. Otherwise, there's a ribbon XML file in your project somewhere that's created by the designer that you can probably edit.
    Monday, October 3, 2016 4:25 PM