Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Excel tabbing to/from controls

Status
Not open for further replies.

dprayner

Programmer
Oct 14, 2002
140
US
Hi people. I have tons of controls (ListBoxes, textboxes, ComboBoxes, CheckBoxes, etc.) on my spreadsheet tabs. I was wondering how everyone typically handles tabbing to and from controls. I originally thought that if a certain cell is existed, one could SetFocus on the control. Unfortunately I don't know of any procedures for individual cells as there are for controls. It is kind of a pain for a user to have to click on controls when the could tab through the whole spreadsheet uninhibated. Any suggestions? DAVE

 
How about trapping the keydown event for the control. If its keycode = 9 i.e TAB key then jump to the next control.
 
Hi Taupirho. I tried this and it doesn't seem to work. I can't beleive how different controls are on UserForms and Spreadsheet. There is no SetFocus and the closest I have come is TextBox1.Select which doesn't work well. DAVE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top