+ Reply to Thread
Results 1 to 7 of 7

Activate custom Ribbon Tab on Workbook Open

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Question Activate custom Ribbon Tab on Workbook Open

    Hi All,
    I have a custom ribbon tab for a workbook that I would like to activate whenever the workbook is opened, so the user can get on with it straight away. Is there a way to achieve this?

    Warm regards,
    Jewel
    Last edited by jewelsharma; 03-20-2014 at 09:12 PM.

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Activate custom Ribbon Tab on Workbook Open

    is the custom tab deployed to all users that will open the file or you need to install it (through VBA) to all users that do not have it?
    Click on the star if you think I helped you

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Activate custom Ribbon Tab on Workbook Open

    You must use onload callback to hold Ribbon reference then you may use its ActivateTab method.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Activate custom Ribbon Tab on Workbook Open

    The custom tab is deployed to all users that will open the file. The tab is named "Extras". All I want is that when the Workbook Opens, the "Extras" ribbon tab is activated instead of the "Home" tab.

    Izandol, Kindly explain a little more about the "hold ribbon reference" part in your reply.

    Thank you both.
    Jewel

  5. #5
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Activate custom Ribbon Tab on Workbook Open

    Please Login or Register  to view this content.
    you need to put the control.ID (in the example 12345) of the custom ribbon tab.

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Activate custom Ribbon Tab on Workbook Open

    CustomUI part must include
    PHP Code: 
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <customUI onLoad="RibbonOnLoad"
    Workbook code must include callback:
    Please Login or Register  to view this content.
    then you may use myRib.ActivateTab "tabID"

    There is example here: http://social.msdn.microsoft.com/For...0?forum=isvvba

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Activate custom Ribbon Tab on Workbook Open

    Izandol, adyteo,
    Thank you gurus.

+ 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. How to create new workbook with custom ribbon in VBA
    By MichalJB in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-25-2013, 02:52 PM
  2. Disable Ribbon Tab When No Workbook is Open
    By bambaataa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2012, 04:34 AM
  3. Hide Ribbon on Workbook Open
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2012, 09:14 PM
  4. Slow opening for workbook with custom ribbon.
    By ericsastud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2011, 11:09 AM
  5. Replies: 5
    Last Post: 11-17-2010, 06:08 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