+ Reply to Thread
Results 1 to 7 of 7

Error 400 in Custom UI editor ?

  1. #1
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Error 400 in Custom UI editor ?

    Hello,

    I am trying to display the home tab in the XLM code.

    Here's my XLM code:

    PHP Code: 
    <customUI onLoad="RibbonX.RibbonOnLoad" xmlns="http://schemas.microsoft.com/office/2006/01/customui">

        <
    ribbon startFromScratch="true">         

            <
    officeMenu>            
                <
    button idMso="FileSaveAs" visible="true" />
            </
    officeMenu>
            
            <
    tabs>
                <
    tab id="customTab" label="CONTROLS" insertAfterMso="TabHome">
                    <
    group id="customGroup4" label="Export options">
                        <
    button id="customButton8" label="Export" size="large" onAction="Sheet1.ExportLogic" imageMso="DefinePrintStyles" />
                    </
    group>
                </
    tab>

                <
    tab idMso="TabDeveloper" getVisible="RibbonX.GetVisible"  />  
                <
    tab idMso="TabHome" getVisible="true"  />                                <!-- line causing error!!!!! -->
            </
    tabs>
        </
    ribbon>
    </
    customUI

    The following line in the above code causses the "400" error:

    <tab idMso="TabHome" getVisible="true" />


    Can someone help me to get rid of this error.

    Thanking all in advance!
    rn

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Error 400 in Custom UI editor ?

    Try this....
    Please Login or Register  to view this content.
    Last edited by HerryMarkowitz; 05-27-2015 at 04:46 PM.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  3. #3
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Error 400 in Custom UI editor ?

    Hello Henry!

    Thanks for replying!

    Here's what I tried:

    PHP Code: 
    <customUI onLoad="RibbonX.RibbonOnLoad" xmlns="http://schemas.microsoft.com/office/2006/01/customui">

        <
    ribbon startFromScratch="true">         <!-- To hide full ribbonuncomment this line and comment the previous line  -->

            <
    officeMenu>            
                <
    button idMso="FileSaveAs" visible="true" />
            </
    officeMenu>
            
            <
    tabs>
                <
    tab id="customTab" label="CONTROLS" insertAfterMso="TabHome">
                    <
    group id="customGroup4" label="Export options">
                        <
    button id="customButton8" label="Export" size="large" onAction="Sheet1.ExportLogic" imageMso="DefinePrintStyles" />
                    </
    group>
                </
    tab
                
                <
    tab idMso="TabDeveloper" getVisible="RibbonX.GetVisible"  />  
                </
    tab
                <
    tab idMso="TabHome" getVisible="true"  />  
                </
    tab
            </
    tabs>
        </
    ribbon>
    </
    customUI
    ... but unfortunately, I get a Custom UI editor error when validate the script... Here's the error:

    Not a valid XML document!
    The 'tabs' start tag on line 9 does not match the end tag of 'tab'. Line 17, position 6.
    What am I missing???

    Thanks for your help .

    rn

  4. #4
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Error 400 in Custom UI editor ?


  5. #5
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Error 400 in Custom UI editor ?

    This site says basically the same thing you proposed ....

    and its not working for me!!!

    Does anyone know what needs to be done to show the Home tab after startFromScratch is set to true?

    Thanks
    Last edited by RustyNail; 05-28-2015 at 01:37 PM.

  6. #6
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Re: Error 400 in Custom UI editor ?

    Never mind !

    I figured it out!

  7. #7
    Registered User
    Join Date
    12-13-2012
    Location
    New Orleans, LA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Error 400 in Custom UI editor ?

    Do you remember the solution? I am receiving an Error 400 when attempting to loop through a directory of workbooks that contain a custom ribbon.

    Any assistance would be greatly appreciated.

+ 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. Macros and Custom UI editor
    By gostavee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 02:37 PM
  2. Assistance with Custom Tab and Groups on Excel Office Ribbon using Custom UI Editor.
    By sdavison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 06:13 AM
  3. [SOLVED] Custom UI Editor
    By britinva in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-04-2014, 09:10 AM
  4. How to create custom tabs using CUSTOM UI EDITOR in excel 2007
    By narendrabr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2014, 12:38 PM
  5. Problem using the new version of custom UI Editor
    By mridzuani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 05:03 AM

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