View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default RibbonX: Problem with OnLoad

Must go now but I use it on this page.

look at the code
http://www.rondebruin.nl/dynamic.htm



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


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