|
-
Jan 18th, 2000, 03:45 AM
#1
Thread Starter
Hyperactive Member
How do you set the selected item in a Combo Box? I'm using VBA but it should be the same as VB but I just don't seem to be doing it right.
-
Jan 18th, 2000, 03:48 AM
#2
If you want just the Text of the selected item, then you can take it from the Combo1.text property. If you need the Index of the selected item, then i dont know!, perhaps a recursive loop comparing the text to each item in the box.
------------------
Wossname,
Email me: [email protected] 
-
Jan 18th, 2000, 03:49 AM
#3
Set its ListIndex property.
------------------
Marty
-
Jan 18th, 2000, 04:05 AM
#4
Thread Starter
Hyperactive Member
Thanks Marty. That was it, I had been trying to use at the wrong place. In VBA you have to make sure the control has focus and I had it in the wrong place. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|