Article View: free.it.visual-basic
Article #2052[VBA] FileSearch.PropertyTests
From: kkeanu
Date: Sat, 22 Nov 2003 16:21
Date: Sat, 22 Nov 2003 16:21
32 lines
1930 bytes
1930 bytes
Devo scrivere del codice utilizzando VBA x Word97
per effettuare una ricerca automatica all'interno
di moltissime directory/files.
Ho un problema utilizzando questo codice:
With fs.FileSearch
.NewSearch
.LookIn = myPath
.SearchSubFolders = True
'.TextOrProperty = miaParola
With fs.FileSearch.PropertyTests
.Add Name:="Testo o propriet�", _
Condition:=msoConditionIncludesPhrase, _
Value:=miaParola, Connector:=msoConnectorOr
End With
Credo che il problema sia nel valore NAME del metodo ADD,
non accetta il valore "Testo o propriet�". Difatti con un
altro valore funziona perfettamente.
Questo e' l'errore che mi da il compliatore VBA:
Errore di run-time '5'
Chiamata di routine o argomento non validi
Mi aiutate?
Grazie in anticipo,
Stefano
Technical Details
Message-ID:
<h2Mvb.135146$vO5.5233424@twister1.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.tiscali.ch!tiscali!newsfeed1.ip.tiscali.net!newsfeeder.edisontel.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,454d234598fd304c,start X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2003-11-22 08:21:34 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.tiscali.ch!tiscali!newsfeed1.ip.tiscali.net!newsfeeder.edisontel.com!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail From: "kkeanu" <kkeanu@NOSPAMinwind.it> Newsgroups: free.it.visual-basic Subject: [VBA] FileSearch.PropertyTests Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <h2Mvb.135146$vO5.5233424@twister1.libero.it> Date: Sat, 22 Nov 2003 16:21:33 GMT NNTP-Posting-Host: 151.37.96.250 X-Complaints-To: abuse@net24.it X-Trace: twister1.libero.it 1069518093 151.37.96.250 (Sat, 22 Nov 2003 17:21:33 MET) NNTP-Posting-Date: Sat, 22 Nov 2003 17:21:33 MET Organization: [Infostrada]