Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JCO JCO is offline
external usenet poster
 
Posts: 54
Default Testing a string againsts a list of strings

Does VB for Excel have a method of testing a string to see if it matches a
list of strings similar to "If... Statements"? I would still need to
perform an action if the statement is true (or false depending on the
logic).

If so, I would assume the opposite can be done... see if "String" is one of
the list of strings.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Testing a string againsts a list of strings

Hi,

Am Thu, 14 Nov 2013 13:01:25 -0600 schrieb JCO:

Does VB for Excel have a method of testing a string to see if it matches a
list of strings similar to "If... Statements"? I would still need to
perform an action if the statement is true (or false depending on the
logic).


are your strings into the sheet? Then you could use
Worksheetfunction.CountIf


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
JCO JCO is offline
external usenet poster
 
Posts: 54
Default Testing a string againsts a list of strings

Yes they are. This will work.
Thanks again.

"Claus Busch" wrote in message
...
Hi,

Am Thu, 14 Nov 2013 13:01:25 -0600 schrieb JCO:

Does VB for Excel have a method of testing a string to see if it matches
a
list of strings similar to "If... Statements"? I would still need to
perform an action if the statement is true (or false depending on the
logic).


are your strings into the sheet? Then you could use
Worksheetfunction.CountIf


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


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
testing url string thomas donino Excel Programming 2 September 1st 09 01:08 AM
Min Date againsts unique customer list Nelson Excel Worksheet Functions 2 July 7th 09 04:45 PM
testing for character strings within a cell MKB Excel Worksheet Functions 2 August 29th 06 06:54 PM
testing for a string type 6e Excel Programming 1 July 20th 06 06:02 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM


All times are GMT +1. The time now is 08:03 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"