Thread: application.filesearch PDF
-
November 11th, 2008, 09:52 AM #1Junior Member
- Join Date
- Nov 2008
- Posts
- 1
application.filesearch PDF
I am working in access 2003. I am looking to implement code to search a directory for all files containing a text string. File types are doc xls or pdf. I am using application.filesearch to do this and it works for .doc and .xls. Used appication.filetypes.add to add doc word and excel filetypes. How do I add pdf file types?
my code is
if I exclude the .filename = "*.pdf" then I get word and excel files. With *.pdf I get every file in the directry including gifs jpgs and search is very slow( a lot of images in the directory- dont want to search those.)
With Application.FileSearch
.NewSearch
.LookIn = "N:\projects\40005.4 Microsphere Development\Database - Lab Reports"
.SearchSubFolders = True
.TextOrProperty = Me.Text28.Text
.FileTypes.Add (msoFileTypeWordDocuments)
.FileTypes.Add (msoFileTypeExcelWorkbooks)
.SearchSubFolders = True
.filename = "*.pdf"
.MatchAllWordForms = True
If .Execute() > 0 Then
thanks
Matt
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Free pdf application
By data switch in forum Applications and Operating SystemsReplies: 1Last Post: November 9th, 2005, 12:41 PM -
Free (if possible) application to open and edit PDF files?
By _Switch_ in forum Applications and Operating SystemsReplies: 3Last Post: July 21st, 2005, 12:59 PM -
PDF
By ClubMed in forum General Tech DiscussionReplies: 3Last Post: June 3rd, 2004, 05:17 PM -
PDF file help
By psppsp in forum Applications and Operating SystemsReplies: 6Last Post: October 13th, 2003, 03:35 PM -
Is there a way to PDF?
By Winos2Mac in forum Applications and Operating SystemsReplies: 1Last Post: December 11th, 2001, 06:55 PM



LinkBack URL
About LinkBacks



Reply With Quote

Happy Hump Day.
Is It Just Me? v233893843