Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
BJ BJ is offline
external usenet poster
 
Posts: 51
Default Wildcard Usage in Combo Box Programming

I have a combo box that has groups of similar options - for example:

Option1 (Term1)
Option1 (Term2)
Option2 (Term1)
Option2 (Term2)

etc.

I need the same event to occur by group - that is, whether it is Option1
(Term1) or Option1 (Term2) I would like the same event to occur.

How can I refer to the choices in the combo box in an IF statement without
using OR multiple times? Is there a way to use a wildcard?

If ComboBox1.Value = "Option1 (Term1)" or "Option1 (Term2)" or ... or ... or

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Wildcard Usage in Combo Box Programming

If Left(ComboBox1.Value, 7) = "Option1" Then
...
End If


"BJ" wrote:

I have a combo box that has groups of similar options - for example:

Option1 (Term1)
Option1 (Term2)
Option2 (Term1)
Option2 (Term2)

etc.

I need the same event to occur by group - that is, whether it is Option1
(Term1) or Option1 (Term2) I would like the same event to occur.

How can I refer to the choices in the combo box in an IF statement without
using OR multiple times? Is there a way to use a wildcard?

If ComboBox1.Value = "Option1 (Term1)" or "Option1 (Term2)" or ... or ... or

Thanks.

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
Public Variables and Combo Box Usage KC[_2_] Excel Discussion (Misc queries) 0 October 19th 09 07:49 PM
File Search for Combo Box Usage - Excel 2007 Marvin Excel Programming 2 December 23rd 08 05:58 PM
Wildcard Usage: I absolutely need this to count?/sum? two or more criteri Inexcelhell Excel Discussion (Misc queries) 2 October 12th 05 03:11 PM
Memory Usage In Excel VBA Programming Jai Excel Programming 1 September 17th 05 02:12 AM
combo Box programming brett4098 Excel Programming 1 October 15th 04 06:40 PM


All times are GMT +1. The time now is 12:06 AM.

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"