+ Reply to Thread
Results 1 to 16 of 16

Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Hi,
    I am using the following ribbon XML to hide options in the backstage menu for Excel 2010 - 2013
    Please Login or Register  to view this content.
    This works fine with Excel 2010, but with 2013 (when clicking on the File menu) 3 errors are displayed:

    Failed to Find Office Control by ID TabNew
    then
    Failed to Find Office Control by ID FileSaveAs
    then
    Failed to Find Office Control by ID FileOpen

    According to this link it should work in 20120 & 2013:
    http://www.rondebruin.nl/win/s2/win005.htm

    I cannot fathom why I have this problem.

    Richard
    www.leansoftware.net

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    In 2013 TabNew is TabOfficeStart, FileSaveAs is TabSave and Open is TabRecent. I don't think you should see the errors unless you have your options set to display CustomUI errors (which is not the default).
    Remember what the dormouse said
    Feed your head

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

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    If you check the ExcelControl IDs for 2013 those are not present.

    Check that page again and look at the 2013 items. You will see for example FileSaveAs is now called TabSave.

    The real problem is that 2010 and 2013 share the same namespace although the mso information is not the same.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Hi Andy,
    if there some way then that I can have an if-then-else in the xml to do-this if 2010 and do-this for 2010?

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

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Not that I know of.

  6. #6
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    No solution then? I guess I can't disable the error checking either..

  7. #7
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Quote Originally Posted by romperstomper View Post
    In 2013 TabNew is TabOfficeStart, FileSaveAs is TabSave and Open is TabRecent. I don't think you should see the errors unless you have your options set to display CustomUI errors (which is not the default).
    Hi
    please could you tell me how to set CustomUI errors?
    That sounds promising!

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    I don't think it's exposed to VBA (it's a registry setting controlled by the ReportAddinCustomUIErrors DWORD entry) but I think your Ribbon XML would be validated before you could do anything about it in code anyway.

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

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Maybe you could adopt this approach. Where you have multiple versions of the UI to be loaded.
    http://msmvps.com/blogs/xldynamic/ar...me-simple.aspx

    BTW the UI setting for errors is within the Advanced section of Excel Options. As romperstomper says this is not exposed to the OM.

  10. #10
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Thanks
    I could set the registry setting on App-Load, however I can't actually find it in the registry.
    This page talks about this for Access:
    http://social.msdn.microsoft.com/For...orum=accessdev

    But the key mentioned is not in the registry on my PC
    ReportAddinCustomUIErrors
    HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General\

    Must be in there somewhere!

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    It's only created the first time you turn that setting on, I suspect. (of course you need 15.0 not 12.0 for Office 2013)

  12. #12
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Ah yes - I was looking under 14 - silly me.
    Thanks all

  13. #13
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Yep - changing the setting on app load worked a treat.
    Cheers

  14. #14
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Glad to help.

    BTW, you may want to be a little more careful in future when repping people to make sure you give them positive rep and not negative.

  15. #15
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    oops very sorry!

  16. #16
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,256

    Re: Failed to Find Office Control by ID TabNew;FileSaveAs;FileOpen

    Not to worry - I knew what you meant.

+ 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] Sherlock, Can You Find Cause of Macro Error on FileOpen
    By mandora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2013, 04:17 AM
  2. Office 2K3 Scroolbar Format Control missing a tab.
    By Sokan33 in forum Excel General
    Replies: 3
    Last Post: 08-16-2006, 04:40 PM
  3. repairing office failed Others are working not excel ?
    By ngauphil in forum Excel General
    Replies: 0
    Last Post: 03-27-2006, 07:00 PM
  4. [SOLVED] VC problem: add an ActiveX control failed.
    By Dicaprio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2005, 11:35 PM
  5. Office 2003 / UpDown Control
    By djrforb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2005, 05:49 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