VBA code for switching between Main tabs

A_Holy_Bartender

New Member
Joined
Feb 18, 2015
Messages
1
Greetings.

I am writing a custom tab ribbon and I discovered that sometimes the program will switch to "Home" tab. I would like to add a command line that will assure that the program will remain in my custom ribbon tab.

any Ideas?

thanks.
fd9cb0_7661379385c4460ba3cbb24a8b292c01.png_srz_p_600_125_75_22_0.50_1.20_0.00_png_srz
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
From what I can tell, you can't do this with the standard Excel set-up.

I found these links <a href="http://stackoverflow.com/questions/19967283/excel-hide-show-all-tabs-on-ribbon-except-custom-tab">here</a> and <a href="http://www.mrexcel.com/forum/excel-questions/634951-activate-given-tab-ribbon.html">here</a> where others have asked the same question (see search tool)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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