Warning: Cannot modify header information - headers already sent by (output started at /home/excel13/public_html/blog/wp-content/themes/cordobo-green-park-09-beta-09/functions.php:2) in /home/excel13/public_html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments on: Activating a Tab on the Ribbon http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/ More geeky stuff from the author of www.excelguru.ca... Mon, 31 Oct 2011 15:51:25 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: Jesse http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177666 Jesse Tue, 18 Oct 2011 23:55:20 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177666 I just use insertBeforeMso="TabHome" in the XML, makes it the first ribbon and it's open automatically on any workbook open and requires no code. I'm using 2010, haven't tried in 2007. Jesse I just use

insertBeforeMso=”TabHome”

in the XML, makes it the first ribbon and it’s open automatically on any workbook open and requires no code. I’m using 2010, haven’t tried in 2007.

Jesse

]]>
By: Ken Puls http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177614 Ken Puls Tue, 26 Jul 2011 04:05:27 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177614 Glad to hear you got it working, and thanks for buying the book! :) Glad to hear you got it working, and thanks for buying the book! :)

]]>
By: Hillyman http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177606 Hillyman Sun, 17 Jul 2011 21:47:00 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177606 OK, disregard my posting earlier today. I bought and downloaded your book RibbonX: Customizing the Office 2007 Ribbon into my iPad and got everything working. Wow! OK, disregard my posting earlier today. I bought and downloaded your book RibbonX: Customizing the Office 2007 Ribbon into my iPad and got everything working. Wow!

]]>
By: Hillyman http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177605 Hillyman Sun, 17 Jul 2011 17:05:15 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177605 I used AJ's approach and used Application.Sendkeys "%G{ESC}{ESC}" ("G" is the keytip for my custom ribbon tab). It works as a standalone macro, but when I link it to Workbook_Open, it doesn't run. I have put the Application.Wait (Now + TimeValue("0:00:02")) before the SendKeys, but it still doesn't want to run as part of the Workbook_Open. So near yet so far! Still exploring what could be causing the stoppage! I used AJ’s approach and used Application.Sendkeys “%G{ESC}{ESC}” (“G” is the keytip for my custom ribbon tab). It works as a standalone macro, but when I link it to Workbook_Open, it doesn’t run.

I have put the Application.Wait (Now + TimeValue(“0:00:02″)) before the SendKeys, but it still doesn’t want to run as part of the Workbook_Open. So near yet so far! Still exploring what could be causing the stoppage!

]]>
By: Ken Puls http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177598 Ken Puls Fri, 15 Jul 2011 16:30:34 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177598 Thnks Rory! Thnks Rory!

]]>
By: Rory Archibald http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177597 Rory Archibald Fri, 15 Jul 2011 16:07:21 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177597 Just as an FYI, Tony Jollans has a great demo of how to do this without SendKeys here: http://www.wordarticles.com/Shorts/RibbonVBA/RibbonVBADemo.php Just as an FYI, Tony Jollans has a great demo of how to do this without SendKeys here: http://www.wordarticles.com/Shorts/RibbonVBA/RibbonVBADemo.php

]]>
By: AJ http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-177569 AJ Tue, 24 May 2011 19:14:01 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-177569 Used UN{RETURN} and it worked but the {RETURN} key caused issues with my other codes. Replace the {RETURN} with {ESC}{ESC} and it works better. Used UN{RETURN} and it worked but the {RETURN} key caused issues with my other codes. Replace the {RETURN} with {ESC}{ESC} and it works better.

]]>
By: VBA et manipulation de ruban - Excel Downloads Forums http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-157034 VBA et manipulation de ruban - Excel Downloads Forums Tue, 09 Jun 2009 20:14:23 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-157034 [...] Re : VBA et manipulation de ruban I found my answer there : The Ken Puls Blog Blog Archive Activating a Tab on the Ribbon Thanks everybody ! [...] [...] Re : VBA et manipulation de ruban I found my answer there : The Ken Puls Blog Blog Archive Activating a Tab on the Ribbon Thanks everybody ! [...]

]]>
By: Ken Puls http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-149462 Ken Puls Tue, 21 Apr 2009 05:15:38 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-149462 Hi Dovy, I can get over the function/sub thing, and I'm glad you got things working! Re question 1, I use the CustomUI Editor. You can find a link to it <a href="http://www.excelguru.ca/blog/2006/12/01/ribbon-example-table-of-contents/" rel="nofollow">here</a>. I still wouldn't say it's efficient, but it's the best tool out there that I've found. (That is not saying it is perfect, in fact, far from it.) Re Question 2, you don't. If you use startFromScratch, you basically need to rebuild the MSO tabs that you do want. Ridiculous, IMO, but the way it is. I believe I did log a bug about the getVisible on msoTabs when startFromScratch is true, so hopefully it gets addressed at some point. Hi Dovy,

I can get over the function/sub thing, and I’m glad you got things working!

Re question 1, I use the CustomUI Editor. You can find a link to it here. I still wouldn’t say it’s efficient, but it’s the best tool out there that I’ve found. (That is not saying it is perfect, in fact, far from it.)

Re Question 2, you don’t. If you use startFromScratch, you basically need to rebuild the MSO tabs that you do want. Ridiculous, IMO, but the way it is. I believe I did log a bug about the getVisible on msoTabs when startFromScratch is true, so hopefully it gets addressed at some point.

]]>
By: Dovy http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/comment-page-1/#comment-148854 Dovy Fri, 17 Apr 2009 17:03:59 +0000 http://www.excelguru.ca/blog/2008/08/13/activating-a-tab-on-the-ribbon/#comment-148854 I finally was able to get rid of the beep. My observation is that KeyTip behaves differently between manual operation and code. 1. Manually: use ALT+KeyTip, execution waits until last character is keyed 2. Code: executions happens once there is unique match I noticed that when my KeyTip had 2 or 3 chars (beginning with Z), it worked with a beep. When I used only 1 char (Z), there was no beep. I tried KeyTip of “ZMN” and a button assigned with SendKeys “Z”, it worked with beep. My conclusion is that when run from code, the program responded to the first char (Z) because it was unique match, and then complained about the extra characters (MN) with a beep. To verify, I tried a KeyTip of “YM”, and now it worked without a beep. I started with “Y” because my other custom tabs, to which I did not assigned KeyTips, default to Yn. Thanks Dovy I finally was able to get rid of the beep.
My observation is that KeyTip behaves differently between manual operation and code.
1. Manually: use ALT+KeyTip, execution waits until last character is keyed
2. Code: executions happens once there is unique match
I noticed that when my KeyTip had 2 or 3 chars (beginning with Z), it worked with a beep. When I used only 1 char (Z), there was no beep.
I tried KeyTip of “ZMN” and a button assigned with SendKeys “Z”, it worked with beep.
My conclusion is that when run from code, the program responded to the first char (Z) because it was unique match, and then complained about the extra characters (MN) with a beep.
To verify, I tried a KeyTip of “YM”, and now it worked without a beep. I started with “Y” because my other custom tabs, to which I did not assigned KeyTips, default to Yn.
Thanks
Dovy

]]>