RibbonX: Problem with OnLoad
OnLoad="OnLoad"
XML is case sensitive. So this must be:
onLoad="OnLoad"
--
Jim
wrote in message
...
|I have been trying to use OnLoad in an existing application without
| success. Could someone take a look at this code and tell me what I am
| doing incorrectly?
|
| This code works:
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?
| <customUI onLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/
| 2006/01/customui"
|
| <!-- Add Custom group to the Home tab in the ribbon--
| <!-- The example add a dynamic menu control--
|
| <ribbon
| <tabs
| <tab idMso="TabHome"
| <group id="customGroup1" label="My Menu"
| insertBeforeMso="GroupEditing"
|
|
| </group
| </tab
|
| </tabs
| </ribbon
| </customUI
|
| This code which I am trying to use generates an error:
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?
| <customUI OnLoad="OnLoad" xmlns="http://schemas.microsoft.com/office/
| 2006/01/customui"
|
| <!-- Add Custom group to the Home tab in the ribbon--
| <!-- The example add a dynamic menu control--
|
| <ribbon
| <tabs
| <tab id="TabMyTools" label="MyTools" insertAfterMso="TabView"
|
| </tab
| </tabs
| </ribbon
| </customUI
|
| The error indicates that OnLoad is not defined in the DTD/Schema.
| Both workbooks have only a simple OnLoad sub in them.
|
| Thanks for your help.
| bob
|