locked
Hide status bar in Word 2007 RRS feed

  • Question

  • Hi !!

     

    i'm using VSTO 2005 SE C# WORD 2007

     

    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad">

        <commands>

            <command idMso="MacroRecord" enabled="false"/>

        </commands>

    </customUI>

     

    I've disabled the MacroRecord command in the ribbon but in the status bar the button "MacroRecord" is always enabled !!

    I've tested with "MacroRecordOrStop" id too.

     

    How disabled or hide this button in the status bar by code?

     

    Otherwise the property Application.DisplayStatusBar = false; doesn't hide the status bar at the bottom ?

     

    Thanks

    Franck

    Wednesday, April 18, 2007 5:25 PM

Answers

  • Hi Franck -

     

    Unfortunately, there's no way to control the Status Bar's contents in Office 2007.

     

    The recommended way to handle this situation is to turn off the status bar entirely. As per Office's UI Documentation (http://msdn2.microsoft.com/en-us/library/aa722523.aspx):

     

    Code Snippet
    Application.CommandBars("Status Bar").Visible = false;

     

     

    It's not a perfect solution, but it will hopefully get you where you want to go.

     

    Andrew

     

     

    Wednesday, April 18, 2007 11:09 PM