locked
Disable/Hide "View" tab in MSP 2010 RRS feed

  • Question

  • Hi,

    I want to hide the "View"  TAB in MSP using VBA.

     


    Thanks, Parth
    • Moved by Alexander.Burton Wednesday, June 29, 2011 10:37 AM Customisation question (From:Project Server - Setup, Upgrade, Administration and Operation)
    Wednesday, June 29, 2011 9:23 AM

Answers

  • Parth,

    Following the items in the above link and coupling this with Project's use of setCustomUI, the following code should hide the View Tab programatically:

     

    Private Sub RemoveBackstageTab()
    
      Dim ribbonXML As String
    
      ribbonXML = "<customUI xmlns=""http://schemas.microsoft.com/office/2009/07/customui"">"
      ribbonXML = ribbonXML + "<ribbon>"
      ribbonXML = ribbonXML + "<tabs>"
      ribbonXML = ribbonXML + "<tab idMso=""TabView"" visible=""false""/>"
      ribbonXML = ribbonXML + "</tabs>"
      ribbonXML = ribbonXML + "</ribbon>"
      ribbonXML = ribbonXML + "</customUI>"
    
      ActiveProject.SetCustomUI (ribbonXML)
    
    End Sub
    
    Private Sub Project_Open(ByVal pj As Project)
        RemoveBackstageTab
    End Sub
    
    

     

    Hope this helps,

     


    Alex Burton
    www.epmsource.com | Twitter
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    • Marked as answer by Parth Rawal Wednesday, July 6, 2011 11:50 AM
    Wednesday, July 6, 2011 10:55 AM

All replies