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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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