Thread: find doc
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default find doc

Curt,
Your code work if the file exist, otherwise err.number=5174.

You sure the A drive (floppy ?) is accessible and has that file name present
?

You can add a
WRDAPP.Visible = True
to see what word is doing/showing.

NickHK

"Curt" wrote in message
...
Dim WRDAPP, WRDDOC
Set WRDAPP = CreateObject("Word.Application")
Set WRDDOC = WRDAPP.Documents.Open("A:\card.doc")
Knowing file is in location. Why do I get cannot find?
Have tried many examples with no luck
Want to build a macro that will open a word doc (card.doc)
If can find start can adjust. Just not good as starter. Old dog learning

new
tricks.