Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Ribbon Custom Tab Focus

I am trying to set focus on one of a number of custom tabs.
I use the Keytip technique:
1. In XML - Define a Keytip
2. In VBA - Application.SendKeys "%ZYX{RETURN}"
It works, however I also get a Beep, indicating some error.
What could be the problem?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 143
Default Ribbon Custom Tab Focus

Might not need {return} see if work without

"Dovy" wrote in message
...
|I am trying to set focus on one of a number of custom tabs.
| I use the Keytip technique:
| 1. In XML - Define a Keytip
| 2. In VBA - Application.SendKeys "%ZYX{RETURN}"
| It works, however I also get a Beep, indicating some error.
| What could be the problem?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Ribbon Custom Tab Focus

On Apr 15, 9:55*am, "Homey" <none wrote:
Might not need {return} see if work without

"Dovy" wrote in message

...
|I am trying to set focus on one of a number of custom tabs.
| I use the Keytip technique:
| 1. *In XML - Define a Keytip
| 2. *In VBA - Application.SendKeys "%ZYX{RETURN}"
| It works, however I also get a Beep, indicating some error.
| What could be the problem?


{Return} is necessary to get the focus away from the ribbon.
I took me some time, but I found the problem.
When you try to change focus with SendKeys technique, the tab get
selected as soon as Excel detects a unique value. Since there is no
other tab with keytip starting with Z, excel fired the selection when
Z was sent, then complained with a beep when YX were sent. Manual
operation using ALT+ works just fine with all three characters.
Dovy
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove All Tabs from Ribbon except Custom Tab RyanH Excel Programming 1 September 29th 08 02:20 AM
Custom ribbon dropdown [email protected] Excel Programming 0 May 4th 08 06:22 PM
Custom menus don't appear under custom ribbon tab Misbah Excel Programming 2 April 15th 08 01:29 AM
no custom button in ribbon Birgit[_2_] Excel Programming 3 February 21st 08 03:41 PM
Macro Fault on Custom Ribbon Karen[_13_] Excel Programming 5 January 23rd 08 07:32 PM


All times are GMT +1. The time now is 07:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"