Activate ciustom tab when opening a workbook

Eric Rossiter

Board Regular
Joined
Jul 6, 2006
Messages
65
Hi,

Is it possible to activate a particular custom tab when a workbook is open

i.e I have a workbook called time sheets. I have a custom ribbon called "Time Sheets"

Initial opening of Excel with time sheets work book has the home tab activated

Opening Time Sheets while another workbook is open activates whatever tab was open at the time

It would be nice when opening Time Sheets that the ribbon associated with bit opens too

Thanks

Eric
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
AFAIK, the only way to do it is a bit complex. However, you state that you have already developed a workbook with a custom tab. Is this a tab that is included in the XML of the workbook and you created it using the CustomUI editor or some other tool? Or is the tab the result of Ribbon customization in the user interface using Excel 2010?
 
Upvote 0
Upvote 0
Thank you all,

Worked a treat in Excel, but cant seem to get it to work in Word.

If I use an Auto_Open the same as I did in Excel. Where should the code live?

It never ceases to amaze me at the speed that I get replies to my questions. You really are a great bunch of people

Cheers

Eric
 
Upvote 0
Thank you all,

Worked a treat in Excel, but cant seem to get it to work in Word.

If I use an Auto_Open the same as I did in Excel. Where should the code live?

It never ceases to amaze me at the speed that I get replies to my questions. You really are a great bunch of people

Cheers

Eric

Yup, we were lightening fast right up until you asked a :warning: Word :warning: question. And no, no ideas whatsoever on how to program Word.
 
Upvote 0
SendKeys is unnecessary when you have the Accessibility objects - see Tony's excellent work here. (just so happens to be in Word too! Works with any Ribbon app though)
 
Upvote 0
The link is at the end of the 'downloadable sample' section.
 
Upvote 0
Eric, I didn't see the link either - I was using IE9. After seeing Rory's response, I tried viewing that webpage in FireFox and Chrome and the link shows up in both of those browsers. But for some reason, it doesn't display the download links properly in IE.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

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