PDA

View Full Version : How to load a (Word) xml ribbon menu via macro (after startup)



DaVinney
02-12-2013, 12:15 PM
Please respond if you have an example or explanation how I can programmatically load an xml ribbon menu in Word. I need to do this after startup (meaning not as part of the startup process). I know how to include the xml in a template and add it to the \startup folder to get it to load as Word is started, but I would like to know how to load it later, using a macro. I'm hoping this is an easy one. : pray2:

DaVinney
02-12-2013, 06:20 PM
Umm...I came across this method (GetCustomUI) here:
http://msdn.microsoft.com/en-us/library/microsoft.office.core.iribbonextensibility.getcustomui.aspx
Function GetCustomUI(RibbonID As String) As String
Dim instance As IRibbonExtensibility
Dim RibbonID As String
Dim returnValue As String
returnValue = instance.GetCustomUI(RibbonID)
End Function
Should I be persuing something along these lines? Any insight? :dunno

macropod
02-13-2013, 06:10 PM
Cross-posted at: http://www.thecodecage.com/forumz/microsoft-word-forum/213779-how-can-i-load-my-customui-xml-ribbon-tab-using-word-visual-basic-applications-after-startup.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184