LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Using wildcards within a text box

Hi all,

I have created a text box within a userform and I have the following
problem.

I wish to enter a surname into the text box, click a Find control
(that I have also placed on the userform) and search through a column
of cells in a worksheet and locate the surname that I have entered
into the text box.

For example if I enter 'Smith' into the text box, I wish for it to
locate, and stop on each 'Smith'.

After having done the above I would like to take it a step further and
use the star (*) wildcard with the search.

For example if I enter Sm* into the text box, I wish for it to locate,
and stop on each 'Smith', 'Smyth', 'Smithson' etc - that is, all the
records that start with 'Sm'.

Likewise, if I enter *ones into the text box, I wish for it to locate,
and stop on each 'Jones', 'Simones', 'Carones' etc - that is, all the
records that end with 'ones'.

Thanks again for your help
 
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
search for text "beginning with" "containing" wildcards David H Excel Worksheet Functions 1 January 13th 10 01:24 PM
If function with text & wildcards Kpercy Excel Worksheet Functions 3 March 9th 09 11:34 PM
using wildcards on text scott Excel Worksheet Functions 1 September 21st 06 05:45 PM
use of wildcards italiavb Excel Worksheet Functions 5 July 14th 06 05:48 AM
Wildcards HELP ME PLEASE! Excel Programming 3 December 3rd 03 01:22 PM


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

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"