+ Reply to Thread
Results 1 to 5 of 5

Error Loading Custom UI XML

  1. #1
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Error Loading Custom UI XML

    I tried to customize the Quick Access Toolbar for a workbook named 'fname_test.xlsm' by adding an icon that runs a macro (Macro1). When I close the workbook and reopen it, I get the following error. When I answer 'OK' to the message, the icon is not there. Any help would be appreciated:

    Error found in Custom UI XML:

    Error Loading Custom UI XML
    Line 1:
    Column: 480
    Error Code 0x80004005
    A name contained an invalid character.
    Error parsing
    ‘fname_test.xlsm_Macro1’ as QName datatype.
    The attribute ‘idQ’ with value
    ‘fname_test.xlsm_Macro1’ failed to parse.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,444

    Re: Error Loading Custom UI XML

    Without seeing what you created it is hard to say, other than something is using an invalid character.

    Have you read Ron de Bruin's pages on the QAT
    http://www.rondebruin.nl/imageqat.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: Error Loading Custom UI XML

    Thanks for the info. I can use it to modify button images on the QAT which is something I wanted to do. I've customized the QAT many times before, but something has changed and I can no longer add buttons to the QAT. I've created and attached a test workbook that is empty but contains two macros. I've customized the QAT, adding a button for macro Test1. The button works when it is first created. When I close and reopen the workbook, however, the error occurs and the button is not there. Thanks for your help.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-16-2007
    MS-Off Ver
    Excel 2003 and Excel 2016
    Posts
    178

    Re: Error Loading Custom UI XML

    This may have something to do with security patch KB969682. I believe this problem started after I installed that patch. I would uninstall it to test but I don't see the patch listed in the Control Panel's list of installed patches. Yet, when I try to install the patch, a message tells me that the patch is already installed. One other factor is that I have both Office 2003 and Office 2007 installed (installed 2003 first and then 2007).

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,444

    Re: Error Loading Custom UI XML

    For me changing the .xlsx reference to .xlsm and removing the : between drive letter and folder made it work.

    <mso:customUI xmlns:doc="http://schemas.microsoft.com/office/2006/01/customui/currentDocument" xmlns:mso="http://schemas.microsoft.com/office/2006/01/customui">
    <mso:ribbon>
    <mso:qat>
    <mso:documentControls>
    <mso:button idQ="doc:C_temp_test.xlsm_test1"
    visible="true"
    label="test1"
    onAction="C:\temp\test.xlsm!test1"
    imageMso="ListMacros"/></mso:documentControls></mso:qat></mso:ribbon></mso:customUI>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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