Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a tab order on vba embedded toolbox controls


I have several Toolbox Control comboboxes & text boxes on an excel sheet
that need to be used interacted with in sequence (from cboSecurity to
cboCoupon). I would like to tab from one embedded form to the next but
they do not have that ability built in. I have been trying to catch the
keypress event and process the KeyCode value:

Private Sub cboSecurity_KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer)
If KeyCode = 9 Then
Sheets("Trade").cboCoupon.Select
End If
End Sub

The selection occurs, but it is selected as if you were in design mode.
What I am trying to achieve is selecting the next combobox (cboCoupon)
and have the cursor be in the box so I can navigate the list by using
the keyboard arrows. Any ideas?


--
afiack
------------------------------------------------------------------------
afiack's Profile: http://www.excelforum.com/member.php...o&userid=12915
View this thread: http://www.excelforum.com/showthread...hreadid=525821

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Creating a tab order on vba embedded toolbox controls

Instead of .Select try .Activate
--
- K Dales


"afiack" wrote:


I have several Toolbox Control comboboxes & text boxes on an excel sheet
that need to be used interacted with in sequence (from cboSecurity to
cboCoupon). I would like to tab from one embedded form to the next but
they do not have that ability built in. I have been trying to catch the
keypress event and process the KeyCode value:

Private Sub cboSecurity_KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer)
If KeyCode = 9 Then
Sheets("Trade").cboCoupon.Select
End If
End Sub

The selection occurs, but it is selected as if you were in design mode.
What I am trying to achieve is selecting the next combobox (cboCoupon)
and have the cursor be in the box so I can navigate the list by using
the keyboard arrows. Any ideas?


--
afiack
------------------------------------------------------------------------
afiack's Profile: http://www.excelforum.com/member.php...o&userid=12915
View this thread: http://www.excelforum.com/showthread...hreadid=525821


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
Controls Toolbox Gene Augustin Excel Discussion (Misc queries) 0 October 10th 09 03:40 PM
Control Toolbox Controls spIky haIred Excel Programming 0 August 24th 05 08:13 AM
Controls Toolbox control vs Form Toolbox control Tony_VBACoder Excel Programming 3 January 28th 05 08:30 AM
Additional toolBox controls Soniya[_2_] Excel Programming 1 January 10th 04 06:40 AM
Additional ToolBox Controls Patrick Molloy Excel Programming 0 September 4th 03 07:42 AM


All times are GMT +1. The time now is 10:36 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"