Answered by:
Disable/Hide "View" tab in MSP 2010

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
-
Hi,
Check out http://www.rondebruin.nl/hidevisible.htm for an excellent walk through of how to do this. The article is for Excel, but it stands true for Project.
Hope this helps,
Alex Burton
www.epmsource.com | Twitter
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page- Proposed as answer by Alexander.Burton Wednesday, June 29, 2011 10:47 AM
Wednesday, June 29, 2011 10:47 AM -
Thanks for the Reply,
"On this page I show you how you can use the getVisible callback to Hide or Display a Custom Tab,
Group or Control on the Ribbon that you create with RibbonX. " But it seems that this post talks on the Hiding the Custom Tab not the BUILT-IN TAB OF THE MSP 2010
Thanks, ParthWednesday, June 29, 2011 11:20 AM -
On that page there is a link to a worksheet called Hide-Display-Built-in Tabs.xlsm which should help.
Alex Burton
www.epmsource.com | Twitter
Project Server TechCenter | Project Developer Center | Project Server Help | Project Product PageWednesday, June 29, 2011 11:29 AM -
Do you have an idea. about this ..!!?
This works with Excel but not with the MSP.
Sub RibbonOnLoad(ribbon As IRibbonUI)
Set Rib = ribbon
End Sub
Thanks, ParthWednesday, June 29, 2011 12:18 PM -
Anyone , Please , does anyone has any idea on the same???
Thanks, ParthMonday, July 4, 2011 11:30 AM -
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 -
Thanks a Zillion... :)
Thanks, ParthWednesday, July 6, 2011 11:50 AM