RibbonX: Problem with OnLoad

B

be_675

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
 
J

Jim Rech

OnLoad="OnLoad"

XML is case sensitive. So this must be:

onLoad="OnLoad"

--
Jim
|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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top