LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
DG DG is offline
external usenet poster
 
Posts: 46
Default Wildcards in a case statement

I have a column that contains a 2 character code. How can I use only one
case statement to be true for all cases where the cell started with a C?
For example the cell could contain CA, CD, CQ, C5 etc.

Select Case Cells(x,9)
Case "BQ"
Rejected = False
Case "C*"
Rejected = True
End Select

Dan


 
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
Using LIKE in case statement Greg Snidow Excel Programming 7 February 19th 10 01:16 AM
If Statement with Wildcards not Working cr0375 Excel Worksheet Functions 7 September 4th 09 12:59 AM
Wildcards in IF statement Ant Excel Discussion (Misc queries) 5 May 26th 09 09:15 PM
VBA Case statement Ken[_4_] Excel Programming 4 January 26th 09 10:07 PM
Case Statement jlclyde Excel Discussion (Misc queries) 3 December 4th 08 05:04 PM


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

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

About Us

"It's about Microsoft Excel"