LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default RibbonX: Problem with OnLoad

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ribbonx - how to create two ribbons? [email protected] Excel Programming 4 December 23rd 07 06:27 PM
About Officemenu(RibbonX) MK Excel Programming 9 April 14th 07 11:34 PM
Extend Excel C API add-in for using RibbonX API Nandan Excel Programming 0 April 10th 07 05:07 PM
Is there an onload event in Excel? loric[_4_] Excel Programming 2 May 5th 06 03:18 AM
Is there any onLoad kind of function for Excel sameerce Excel Programming 2 April 9th 04 10:03 AM


All times are GMT +1. The time now is 02:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"