Open the specified tab on the Ribbon when you start Excel

rediffusion

Board Regular
Joined
Apr 24, 2019
Messages
60
I added my add-in to Excel. Used "XML" to call from inside keytip="BP" and ******="ChooseTab". Running "MyExcelAddin.xlam" - It's WORK!
But! The fact is that after I go to the developer tab > Excel add-Ins = there I choose my add-in... When i open the add-in or any other Book, and boom doesn't WORK already! WTF I did not understand!?
Anyways does not work after setting the tick! ✅

Found on one portal StackOverflow, need to use "OnTime" instead of "Wait" or "Sleep". Seems like "Ontime" was not blocking the custom Ribbons from loading.
But I couldn't find the right code.

XML:

Code:
 <!--?xml version="1.0" encoding="UTF-8" standalone="yes"?-->
<customui xmlns="http://schemas.microsoft.com/office/2009/07/customui" ******="<strong><font color=" #2f4f4f"="">ChooseTab">
    <ribbon startfromscratch="false">
        <tabs>
            <tab id="mytab_1" label="My Macros" keytip="BP">
                <group id="Sheets" label="Листы">
                    <button
                        idMso="About"
                        label="Show About"
                        screentip="Bla bla bla"/>
            </button
</group></tab>
        </tabs>
    </ribbon>
</customui>



VBA:

Code:
 ' (component: customUI, atribut: ******), 2010
Sub [B][COLOR=#2F4F4F]ChooseTab[/COLOR][/B](ribbon As IRibbonUI)
    SendKeys "%BP{F6}"
End Sub

P.S. :
"Office 2019"
"Microsoft Windows 10 Enterprise 2016 LTSB"
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,214,539
Messages
6,120,100
Members
448,944
Latest member
SarahSomethingExcel100

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top