View Full Version : [SOLVED] Changing the active ribbon when PPT starts

06-06-2015, 11:06 AM
Hi there,

well, I don't know, if it is an XML question:

When I open PowerPoint, the "Start"-ribbon always is the active one. I would love to have my self-built add-in-ribbon (let's call it "RG Home") being the active ribbon, when I start PowerPoint.

I had a look into the PowerPoint options but didn't find anything helpful. Have I been too blind? Or is it an XML thing? Or something to do in the registry?

I would be interested in finding out how to do this.

Thank you,

06-08-2015, 06:24 AM

2010 and later only

Public myRibbon As IRibbonUI

Sub tabActivate(ByVal control As IRibbonControl)
myRibbon.ActivateTab (control.ID)
End Sub

06-08-2015, 02:22 PM
Dear Paul,

maybe I'm already too tired ... night falls over Western Europe ... do I have to change anything to tell the macro the name of my tab? I tried renaming the tab id in XML to "myRibbon", I tried renaming my module to "myRibbon" or to "RibbonControl" and I tried with not changing anything. My tab stays in the background ... What am I doing wrong? Sorry for my stupidity ... most of things I do around VBA and XML still are trial and error ... (I work with 2010, that shouldn't be the reason)


06-08-2015, 04:11 PM
'Callback for customUI.onLoad
Sub OnRibbonLoad(ribbon As IRibbonUI)
Dim x As Object
Set oRibbon = ribbon
On Error Resume Next
Set x = Application.ActiveWindow.View.Slide.Shapes("Draftmaster")
On Error GoTo 0

bMarkedDraft = Not (x Is Nothing)

oRibbon.ActivateTab ("RGHomeTab")

End Sub

06-09-2015, 01:37 AM
Aaaah ... it was


that had to be replaced!

OMG ... your quote in the other thread is really so true ... :-)