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

In VBA, how can I check if a substring exists in a cell? Say
cells have
ABC123
D123EF
GHI456

How can I test if a cell has "123" in it, in this case, the top 2 cells
will pass the test.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default substring check

On Mon, 28 Jan 2008 19:16:03 -0500, "Net Doe"
wrote:

In VBA, how can I check if a substring exists in a cell? Say
cells have
ABC123
D123EF
GHI456

How can I test if a cell has "123" in it, in this case, the top 2 cells
will pass the test.


INSTR function
--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default substring check

"Ron Rosenfeld" wrote in message
...
On Mon, 28 Jan 2008 19:16:03 -0500, "Net Doe"

wrote:

In VBA, how can I check if a substring exists in a cell? Say
cells have
ABC123
D123EF
GHI456

How can I test if a cell has "123" in it, in this case, the top 2 cells
will pass the test.


INSTR function

--ron

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
substring Satyanaidu Excel Discussion (Misc queries) 2 September 11th 09 09:33 AM
Finding a Substring? Jakobshavn Isbrae Excel Worksheet Functions 4 February 22nd 07 03:26 PM
Substring Ldyflyr Excel Discussion (Misc queries) 0 February 15th 07 03:16 PM
Substring Petya Excel Discussion (Misc queries) 0 February 15th 07 02:53 PM
Substring check within VBA Gary's Student Excel Programming 7 August 6th 05 03:38 PM


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