Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Combobox Question

I have a userform with several combo boxes. When I tab
from box to box it not only selects the value in the
destination box, but it highlights it.

When my userform activates, the code has it "set focus" to
the first combo box. It selects the box but it doesn't
hightlight the value in it. Is there a way I can get it
to highlight this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Combobox Question


With ComboBox1
.SelStart = 0
.SelLength = Len(.Value)
.SetFocus
End With


--

HTH

RP

"scrabtree" wrote in message
...
I have a userform with several combo boxes. When I tab
from box to box it not only selects the value in the
destination box, but it highlights it.

When my userform activates, the code has it "set focus" to
the first combo box. It selects the box but it doesn't
hightlight the value in it. Is there a way I can get it
to highlight this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
another combobox question teepee Excel Discussion (Misc queries) 2 May 13th 07 01:01 AM
combobox Question Greg B Excel Discussion (Misc queries) 2 September 2nd 05 04:22 PM
ComboBox Question Kevin Excel Programming 1 December 7th 03 04:54 PM
VB question on ComboBox neeas Excel Programming 1 November 14th 03 09:54 PM
ComboBox Question Terry Detrie Excel Programming 2 October 18th 03 02:55 PM


All times are GMT +1. The time now is 12:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"