Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA- Contains any element

Is there any way I can search a string to see if it contains any element of
another string (or array)? If so, can you give me an example so I can get
the syntax right.

I am trying to force entry of more than 5 characters, at least one of which
is from the 26-character alphabet, into a form text box.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBA- Contains any element

Look at the InStr function in VBA help.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"digiphotogirl" wrote in message
...
Is there any way I can search a string to see if it contains any element

of
another string (or array)? If so, can you give me an example so I can

get
the syntax right.

I am trying to force entry of more than 5 characters, at least one of

which
is from the 26-character alphabet, into a form text box.

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
XML Element mapping Kathy F-RIDOT Excel Worksheet Functions 0 January 16th 10 06:16 PM
Percentage of an Element ... Magic1 New Users to Excel 1 May 24th 09 05:56 PM
look for missing element SteveDB1 Excel Worksheet Functions 1 August 7th 08 04:01 PM
nth element extract RSCARLISLE Excel Worksheet Functions 3 August 2nd 07 09:04 PM
How to define the 1st, 2nd and 3rd element DamiaoPastana Excel Worksheet Functions 4 June 8th 06 06:55 PM


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