+ Reply to Thread
Results 1 to 4 of 4

Ribbon/Xml Problem

Hybrid View

CaptMac Ribbon/Xml Problem 04-20-2015, 03:22 PM
CaptMac Re: Ribbon/Xml Problem 04-20-2015, 05:26 PM
Leith Ross Re: Ribbon/Xml Problem 04-20-2015, 06:01 PM
CaptMac Re: Ribbon/Xml Problem 04-20-2015, 06:58 PM
  1. #1
    Forum Contributor
    Join Date
    10-02-2008
    Location
    Berkeley, CA
    MS-Off Ver
    Windows 2007
    Posts
    105

    Ribbon/Xml Problem

    Code
    <!-- Compiled from "- VBA LIB.XLSM" on 4/20/2015 -->	
    	
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >	
        <ribbon>	
            <tabs>	
                <tab id="VBA" label="VBA" insertAfterMso="TabHome" />	
                    <group id="CALLS" label="CALLS">	
                        <button id="CALLS_g01b01" label="Build CALLS" onAction="a1__Build_Calls" />
                    </group>	
                    <group id="SYSTEM" label="SYSTEM">	
                        <button id="SYSTEM_g02b01" label="Compile Ribbon" onAction="vb_Compile_Ribbon_Code" />	
                    </group>	
                </tab>	
            </tabs>	
        </ribbon>	
    </customUI>
    I get the following message:
    "The 'tabs' start tag on line 5 does not match the end tag of 'tab'. Line 13, position 15."

    It looks balanced to me, and I've used this format lots of times before. I've tried taking out lines, but that doesn't take the mistake away, even if I take everything between the <tabs> tabs.

    Don't know if I should post here or under "Non English Excel".

    Thanks for any help.
    Mac

  2. #2
    Forum Contributor
    Join Date
    10-02-2008
    Location
    Berkeley, CA
    MS-Off Ver
    Windows 2007
    Posts
    105

    Re: Ribbon/Xml Problem

    I thought the lines might have funny coding in them, so here's a check for that:

    "Sp,Sp,Sp,Sp,Sp,Sp,Sp,Sp, <,  t, a, b,  s, >
    32,32,32,32,32,32,32,32,60,116,97,98,115,62"
    and

    "Sp,Sp,Sp,Sp,Sp,Sp,Sp,Sp, <, /,  t, a, b,  s, >
    32,32,32,32,32,32,32,32,60,47,116,97,98,115,62"

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Ribbon/Xml Problem

    Hello CaptMac,

    Try the code below. The changed line is in blue.
    <!-- Compiled from "- VBA LIB.XLSM" on 4/20/2015 -->	
    	
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" >	
        <ribbon>	
            <tabs>	
                <tab id="VBA" label="VBA" insertAfterMso="TabHome">	
                    <group id="CALLS" label="CALLS">	
                        <button id="CALLS_g01b01" label="Build CALLS" onAction="a1__Build_Calls" />
                    </group>	
                    <group id="SYSTEM" label="SYSTEM">	
                        <button id="SYSTEM_g02b01" label="Compile Ribbon" onAction="vb_Compile_Ribbon_Code" />	
                    </group>	
                </tab>	
            </tabs>	
        </ribbon>	
    </customUI>
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    10-02-2008
    Location
    Berkeley, CA
    MS-Off Ver
    Windows 2007
    Posts
    105

    Re: Ribbon/Xml Problem

    Many thanks, Leith Ross. I messed around and figured this out myself and just returned to mark it "Solved" when I saw your post.

    To the formatting of XML is very rigid, and I don't know enough about it yet to figure it out except by comparing what use to work with what isn't working now.

    Mac

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Ribbon Change based on Non-Ribbon Object
    By diakonos1984 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-07-2014, 01:18 PM
  2. [SOLVED] An alternative to the Add-Ins ribbon tab - Global Custom Ribbon Tab by Ken Puls
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2014, 10:01 PM
  3. Excel 2007 Ribbon Problem...
    By amitkumarsony2412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 06:19 AM
  4. Ribbon - Multiple xlam adding into single Ribbon tab
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2011, 03:40 PM
  5. 2007 Ribbon Problem - XML code Deleting
    By akumars in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2009, 01:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1