![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi,
When a UserForm is Activated i would like to have the ListBox "Have Focus"? Thanks for any help. Regards, James _________________ [ This Message was edited by: James on 2002-05-21 16:29 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP, Administrator
Join Date: Feb 2002
Location: The act or process of locating.
Posts: 13,679
|
Would ListBox1.SetFocus work for you?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi Von Pookie,
No, i've tried that, any other ideas? Regards, James |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi Von Pookie,
No, i've tried that, any other ideas? Regards, James |
|
|
|
|
|
#5 |
|
MrExcel MVP, Administrator
Join Date: Feb 2002
Location: The act or process of locating.
Posts: 13,679
|
As I've never used a listbox (as of yet), that was a guess on my part.
I've found the Userform Training workbook a rather helpful example by examining the code. |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
Hi group,
What i meant when i posted listBox "taking focus" was when the Uf was activated the first row at the top of the ListBox was shaded blue, "had focus" without clicking on it. So.... it's all keyboard control > arrow up > arrow down and keypress enter. Example: UserForm1.Show.ListBox1.Selected(0)=True UserForm1.Show Regards, James |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|