ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Textbox inserted on an Excel sheet does not allow TABINDEX or SetF (https://www.excelbanter.com/excel-programming/413436-textbox-inserted-excel-sheet-does-not-allow-tabindex-setf.html)

Raky

Textbox inserted on an Excel sheet does not allow TABINDEX or SetF
 
I designed a sheet with textbox and combobox elements on in, so it looks like
a form. Now I had to learn that it is not possible to get the cursor
positioned on the textbox (doing so within a form SetFocus is available) when
opening the sheet and it's not possible to jump into the next defined textbox
by using the TAB-key.
Does anyone know how to deal with this?
--
Best Regards

Rick Rothstein \(MVP - VB\)[_2221_]

Textbox inserted on an Excel sheet does not allow TABINDEX or SetF
 
You can select the TextBox in code like this...

ActiveSheet.Shapes("Text Box 3").Select

where you use the TextBox's name (in quotes) as the index into the Shapes
collection.

Rick


"Raky" wrote in message
...
I designed a sheet with textbox and combobox elements on in, so it looks
like
a form. Now I had to learn that it is not possible to get the cursor
positioned on the textbox (doing so within a form SetFocus is available)
when
opening the sheet and it's not possible to jump into the next defined
textbox
by using the TAB-key.
Does anyone know how to deal with this?
--
Best Regards




All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com