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: 1
Default Excel Searching and Wildcards

Hi All, at the moment I'm writing a spot of VBA code to search through
a couple of sheets and depending on the contents of those sheets
sending the info back to the main sheet for the user. However I also
want to add a wildcard option, so that the users can select a couple
of parameters and a wildcard. Only problem is that my experience of
VBA is rather limited.

My thinking is something like the following bit of code:

'Check for Wildcard setting
If Worksheets("FrontEnd").Range("Info1").Value = "ALL" Then
MainInfo1 = "*"
Else
MainInfo1 = Sheets("FrontEnd").Range("Info1").Value
End If

Then using the * to search, assuming of course that Excel interprates
that as a wildcard.

But I wondered if I have to escape the * character like in C++ or
whether look at assigning the variable to a list of all the
options....e.g. All = "1,2,3..."

I have tried trawling through both the Excel help file and also Google
to no avail as yet.

Any suggestions gratefully appreciated.

Euan
--
 
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
WildCards in Excel Pai Excel Worksheet Functions 2 January 25th 09 06:52 PM
excel 2003 wildcards quynies_mom Excel Worksheet Functions 2 January 3rd 09 05:45 AM
Excel - Wildcards soke2001 Excel Discussion (Misc queries) 3 September 14th 07 03:22 PM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
How can I find strings of wildcards in Excel? Nick M Excel Discussion (Misc queries) 2 December 20th 04 05:59 PM


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