Results 1 to 10 of 17

Thread: Activate Ribbon Tab In Excel 2007 2010 *

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Phil,

    Welcome to Excel Fox

    You can simply call the function like so

    Code:
    Sub OLUIR(ribbon As IRibbonUI)
    
        On Error Resume Next
        If Val(Application.Version) = 14 Then
            ribbon.ActivateTabMso "TabAddIns" ' For Excel 2010
        ElseIf Val(Application.Version) = 12 Then
            Application.OnTime Now(), "ActivateMyTab" 'For Excel 2007
        End If
    
    End Sub
    
    Sub ActivateMyTab()
    
        ActivateTab "Add-Ins"
        
    End Sub
    Last edited by DocAElstein; 07-11-2023 at 11:58 AM.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Test copy Activate Ribbon Tab In Excel 2007 2010 *
    By Excel Fox in forum Test Area
    Replies: 16
    Last Post: 01-22-2019, 05:05 PM
  2. Replies: 1
    Last Post: 11-23-2013, 08:41 PM
  3. Ribbon DatePicker Calendar Control For Excel 2007-2010
    By Excel Fox in forum Excel Ribbon and Add-Ins
    Replies: 5
    Last Post: 10-12-2013, 11:23 AM
  4. Ribbon Calendar DatePicker Word 2007-2010
    By Excel Fox in forum Download Center
    Replies: 24
    Last Post: 09-23-2013, 09:07 AM
  5. How To Add A New Ribbon Tab In Excel
    By Excel Fox in forum Excel Ribbon and Add-Ins
    Replies: 0
    Last Post: 04-09-2011, 12:14 PM

Tags for this Thread

Posting Permissions

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