ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform - where is the cursor ? (https://www.excelbanter.com/excel-programming/330459-userform-where-cursor.html)

fero

Userform - where is the cursor ?
 
Hi all

After loading Userform (Initialize or Activate) I'm setting focus on
ComboBox, which is into a Frame, but the cursor is not visible. (Neither
Frame.ComboBox.SetFocus nor ComboBox.SetFocus works ...) What's wrong ?
Thanks
Fero



Harald Staff

Userform - where is the cursor ?
 
Frame1.SetFocus
ComboBox2.SetFocus

Do you have everything checked in the VB editor's Tools Options Editor
menu ? You should see helpful suggestions and meaningful error messages if
so.

HTH. Best wishes Harald

"fero" skrev i melding
...
Hi all

After loading Userform (Initialize or Activate) I'm setting focus on
ComboBox, which is into a Frame, but the cursor is not visible. (Neither
Frame.ComboBox.SetFocus nor ComboBox.SetFocus works ...) What's wrong ?
Thanks
Fero





fero

Userform - where is the cursor ?
 
Thanks
but it doesn't work .
In the VB editor's Tools Options Editor menu is everything checked ...
( I forgot - the cursor is visible after clicking on the ComboBox ...)
fero



"Harald Staff" píše v diskusním příspěvku
...
Frame1.SetFocus
ComboBox2.SetFocus

Do you have everything checked in the VB editor's Tools Options Editor
menu ? You should see helpful suggestions and meaningful error messages if
so.

HTH. Best wishes Harald

"fero" skrev i melding
...
Hi all

After loading Userform (Initialize or Activate) I'm setting focus on
ComboBox, which is into a Frame, but the cursor is not visible. (Neither
Frame.ComboBox.SetFocus nor ComboBox.SetFocus works ...) What's wrong ?
Thanks
Fero







Harald Staff

Userform - where is the cursor ?
 
Of course it works. You probably didn't implement it right, and you haven't
provided any information that enables anyone to help you with it.

HTH. Best wishes Harald

"fero" skrev i melding
...
Thanks
but it doesn't work .




Harald Staff

Userform - where is the cursor ?
 
Very confusing. I built the thing as you described and it works great here
as expected.
(In that demo ComboBox1 is the only control on the form, so it works also
without code.)

Best wishes Harald

"fero" skrev i melding
...
Thanks
I attached a file with a (maybe) problem ...
fero





All times are GMT +1. The time now is 05:41 PM.

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