Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mim Mim is offline
external usenet poster
 
Posts: 12
Default tab indexing

I can't get the tab indexing to work correctly on a user form.

I have a user form with two frames.
the first frame has two combo boxes and a text box, and three labels.
The labels are not indexed, and their tabstop property is set to False.
The other controls tab indexes are set to 0, 1 and 2 respectively.
the first combobox in this frame has focus set when the form is loaded.

the second frame has three text boxes and three labels.
Again, the labels tabstop property is set to False, and the textboxes tab
indexes are set to 0, 1, and 2.

When I tab through, I have to hit the tab key 3 extra times before the
cursor will move from the last text box in the first frame to the first
textbox in the second frame. I'm not sure where those three "tabs" are going
to, as the blinking cursor dissappears until it shows again in the textbox on
the second frame.

How can I make the tab go from the last text box in the first frame directly
to the first textbox in the second frame?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default tab indexing

Hi Mim,

Are you sure you don't have any other controls like OK and/or Cancel
buttons that can take the focus when you tab? If you want the Tab key to
only cycle through the controls you mention, you have to be sure that any
other controls on the form that can take focus have their TabStop property
set to False.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm

"Mim" wrote in message
...
I can't get the tab indexing to work correctly on a user form.

I have a user form with two frames.
the first frame has two combo boxes and a text box, and three labels.
The labels are not indexed, and their tabstop property is set to False.
The other controls tab indexes are set to 0, 1 and 2 respectively.
the first combobox in this frame has focus set when the form is loaded.

the second frame has three text boxes and three labels.
Again, the labels tabstop property is set to False, and the textboxes tab
indexes are set to 0, 1, and 2.

When I tab through, I have to hit the tab key 3 extra times before the
cursor will move from the last text box in the first frame to the first
textbox in the second frame. I'm not sure where those three "tabs" are
going
to, as the blinking cursor dissappears until it shows again in the textbox
on
the second frame.

How can I make the tab go from the last text box in the first frame
directly
to the first textbox in the second frame?



  #3   Report Post  
Posted to microsoft.public.excel.programming
Mim Mim is offline
external usenet poster
 
Posts: 12
Default tab indexing

Hi Rob,
I do have two buttons on the form as well. I tried setting their tabstops to
False, but still get the same results.

"Rob Bovey" wrote:

Hi Mim,

Are you sure you don't have any other controls like OK and/or Cancel
buttons that can take the focus when you tab? If you want the Tab key to
only cycle through the controls you mention, you have to be sure that any
other controls on the form that can take focus have their TabStop property
set to False.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm

"Mim" wrote in message
...
I can't get the tab indexing to work correctly on a user form.

I have a user form with two frames.
the first frame has two combo boxes and a text box, and three labels.
The labels are not indexed, and their tabstop property is set to False.
The other controls tab indexes are set to 0, 1 and 2 respectively.
the first combobox in this frame has focus set when the form is loaded.

the second frame has three text boxes and three labels.
Again, the labels tabstop property is set to False, and the textboxes tab
indexes are set to 0, 1, and 2.

When I tab through, I have to hit the tab key 3 extra times before the
cursor will move from the last text box in the first frame to the first
textbox in the second frame. I'm not sure where those three "tabs" are
going
to, as the blinking cursor dissappears until it shows again in the textbox
on
the second frame.

How can I make the tab go from the last text box in the first frame
directly
to the first textbox in the second frame?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default tab indexing

"Mim" wrote in message
...
Hi Rob,
I do have two buttons on the form as well. I tried setting their tabstops
to
False, but still get the same results.


Hi Mim,

I've just set up a UserForm exactly as you describe, including the two
buttons. After setting the TabStop properties of the two buttons to False
the Tab key only cycles through the controls inside the two frames. Are you
sure you have the TabStop properties of the two buttons set to False and
that there are no other controls on the form that could take the focus?

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


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
Indexing TWP Excel Discussion (Misc queries) 5 April 22nd 09 11:10 PM
Indexing Anto111 Excel Discussion (Misc queries) 1 July 26th 08 08:01 PM
Tab indexing ibgolfn Excel Discussion (Misc queries) 2 January 16th 08 12:04 AM
Indexing M&M[_2_] Excel Discussion (Misc queries) 1 July 13th 07 07:10 PM
Indexing of Name Charlie Excel Worksheet Functions 1 April 5th 06 01:33 PM


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