Consulting

Results 1 to 8 of 8

Thread: RibbonX behaves differently under Windows 7

  1. #1
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location

    RibbonX behaves differently under Windows 7

    I find that the behavior of the custom Ribbon tab of an add-in that I use is different in Windows 7 from Vista, after upgrading my OS. I am using Excel 2007.

    In Win 7, even though the add-in tab is visible, the ribbon under the tab is the standard Excel ribbon if there is no file loaded (apart from the add-in).

    Only when a file gets loaded, the Ribbon for the custom tab changes to the custom one. If the loaded file is closed, the custom ribbon vanishes again.

    In Vista, the custom ribbon is always shown under the custom tab, irrespective of whether or not any other file is loaded.

    Have others noted this? If so, is there a way to make the custom ribbon always visible? Thanks.

    Shankar

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    What does your callback code look like?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location
    I found that the behavior is related to callbacks. Even if I have getEnabled set to just True in the callback, I have to click the custom tab 2 or 3 times for the custom ribbon to appear.

    Any clue as to what is happening? Thanks.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Not without seeing it in action.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location
    I have attached a macro file that gives the problem. Please save it as an add-in and open it. I have to click on the custom tab twice to get my ribbon to display. On my actual project, it takes 5 or 6 times.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I have just loaded it in Excel 2010 under Windows 7 and I see no abnormal behaviour. I loaded the addin, no other workbook, and the tab showed immediately. Loading a file was fine too.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location
    Maybe it is an Excel 2007- Windows 7 issue. I had no problems with Vista.

  8. #8
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location
    I found that each time the custom tab is clicked, only one callback gets called. So if there are 5 callbacks in the XML code, then it takes 5 clicks before the custom ribbon gets shown.

Posting Permissions

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