WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Start a document search from word or VBA

 
   Home -> Office -> User Forms RSS
Next:  Header and spanning pages  
Author Message
Bruce Mathews

External


Since: Aug 06, 2008
Posts: 1



(Msg. 1) Posted: Wed Aug 06, 2008 11:15 am
Post subject: Start a document search from word or VBA
Archived from groups: microsoft>public>word>vba>userforms (more info?)

How can I invoke a document search form either a document or a VBA macro?

I have an application where I generate multiple documents
(.doc,.xls,.pdf,etc.) all saved on \mydocuments\various folders. All file
names start with (or contain) a unique claim number. To find all documents
related to a claim, I now show the desktop, click on a "my documents" folder,
hit the search icon and put the claim number in the file name fill-in.

I have VAB code that creates a claim controling Word.doc from corporate web
page data (I mine the web page data to prefill some note templates specific
to our office) and I insert claim data into a claim_log.xls.

I would like to embed a one button document search for this claim in the
word doc (hyperlink or a macro button-passing a claim number paramater) or in
the claim log.xls This method needs to become part of the VBA that creates
the claim.doc/Claim_log.xls entry.

I think what I want to launch is the Search Companion (we are running XP)
but I don't know the syntax and how to pass parameters to it or the best way
(or any way) to launch to search for files with a specific file name.
--
Bruce Mathews
Trying to master VBA
Back to top
Login to vote
Doug Robbins - Word MVP

External


Since: Jul 14, 2006
Posts: 4210



(Msg. 2) Posted: Thu Aug 07, 2008 3:05 am
Post subject: Re: Start a document search from word or VBA [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

See the article "Insert into a document the names of all files in a selected
folder" at:

http://www.word.mvps.org/FAQs/MacrosVBA/InsertFileNames.htm

Use an InputBox to get the claim number and use an If...EndIf construction
to test for the presence of the claim number in each file that is accesses
by the routine, only inserting the filename if the condition is met.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Bruce Mathews" <brucelmathews DeleteThis @yahoo.com(donotspam)> wrote in message
news:6D823145-A723-4ED3-8D43-401F1B0691AA@microsoft.com...
> How can I invoke a document search form either a document or a VBA macro?
>
> I have an application where I generate multiple documents
> (.doc,.xls,.pdf,etc.) all saved on \mydocuments\various folders. All file
> names start with (or contain) a unique claim number. To find all
> documents
> related to a claim, I now show the desktop, click on a "my documents"
> folder,
> hit the search icon and put the claim number in the file name fill-in.
>
> I have VAB code that creates a claim controling Word.doc from corporate
> web
> page data (I mine the web page data to prefill some note templates
> specific
> to our office) and I insert claim data into a claim_log.xls.
>
> I would like to embed a one button document search for this claim in the
> word doc (hyperlink or a macro button-passing a claim number paramater) or
> in
> the claim log.xls This method needs to become part of the VBA that
> creates
> the claim.doc/Claim_log.xls entry.
>
> I think what I want to launch is the Search Companion (we are running XP)
> but I don't know the syntax and how to pass parameters to it or the best
> way
> (or any way) to launch to search for files with a specific file name.
> --
> Bruce Mathews
> Trying to master VBA
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET