+ Reply to Thread
Results 1 to 3 of 3

Activate custom ribbon tabs for differents sheets

  1. #1
    Registered User
    Join Date
    02-16-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2003
    Posts
    42

    Activate custom ribbon tabs for differents sheets

    Hi and thanks in advance,

    I am using Excel 2010 and have created a custom ribbon with two tabs and there are two worksheets. When you activate the Quote worksheet the tabQuote tab shows and the tabEstimate tab is hidden. When you activate the Estimate worksheet the tabEstimate tab shows and the tabQuote tab is hidden. The other Excel built in tabs are visible also. Both of my custom tabs are set to appear before the Home tab. When either of the custom tabs are shown I want them to be the active tab, which is not the case if one of the Excel built in tabs was the active tab prior to showing/hiding my tabs.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Activate custom ribbon tabs for differents sheets

    Hi there,

    I'm aware of the following workaround for what you're trying to do, but I've never used it myself (so far anyway! )

    Maybe the following link might be of some assistance:


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    02-16-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Activate custom ribbon tabs for differents sheets

    Hi Greg,

    Thanks for the link ... there was some interesting stuff on that post but in the end I found a fairly simple way to do what I wanted.

    I put this code in a standard module:

    Please Login or Register  to view this content.
    And this code in the Worksheet_Activate events for the ribbon tab I want to activate for each sheet:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

+ 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] Hide All Ribbon Tabs except Custom Tab
    By RustyNail in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-28-2015, 03:15 PM
  2. [SOLVED] Activate button upon checkbox selection in custom ribbon
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2015, 09:26 PM
  3. 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
  4. [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
  5. [SOLVED] Activate custom Ribbon Tab on Workbook Open
    By jewelsharma in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2014, 09:10 PM
  6. Replies: 25
    Last Post: 05-27-2011, 06:48 PM
  7. separate data of differents countries in others sheets
    By silviario in forum Excel General
    Replies: 6
    Last Post: 04-27-2011, 03:14 PM

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