Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default FileSearch for a TextorProperty with a wildcard

I'm trying to search through files and return the filenames of those files that contain a particular text. Well, I can do this just find if I know exactly the text I'm looking for but I don't. (I only know for certain the last 8 characters of a 14 character string). I've tried wildcards and setting .MatchTextExactly = False, but I still can't get this to work. Does anyone have any advice that could help me out with this? Much appreciated


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default FileSearch for a TextorProperty with a wildcard

Have a look at the VB Instr() function which will allow you to search
for your 8 characters. If it returns a number more than zero
...........


Regards
BrianB
================================================== ============

myensr wrote in message ...
I'm trying to search through files and return the filenames of those

files that contain a particular text. Well, I can do this just find if
I know exactly the text I'm looking for but I don't. (I only know for
certain the last 8 characters of a 14 character string). I've tried
wildcards and setting .MatchTextExactly = False, but I still can't get
this to work. Does anyone have any advice that could help me out with
this? Much appreciated.
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
FileSearch Problem Jarek[_3_] Excel Programming 3 November 27th 03 02:06 PM
.FileSearch Randall[_3_] Excel Programming 4 November 26th 03 01:48 AM
FileSearch Problem Nigel[_4_] Excel Programming 4 October 11th 03 03:43 PM
FileSearch Code Pedro[_4_] Excel Programming 1 August 6th 03 02:27 PM
FileSearch Problem Bin[_2_] Excel Programming 6 August 2nd 03 02:04 PM


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