problem: closing invisible document

M

Michael Rohde

hi,

i open a document by
set doc = document.open visible:=false
but i cannot close it by
doc.close
anyone knows how i close a invisble document?

thanx in advance,


mic
 
H

Helmut Weber

Hi Michael,
the following works at least in my environment.
Dim aDoc As Document
Set aDoc = Documents.Open("c:\test.doc", Visible:=False)
MsgBox "open"
aDoc.Close
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word 97, NT 4.0
 
M

Michael Rohde

thanx,

but even this is my problem. word doesn't close the document
if it's opened "invisible".
i'am using windows 2000 & word 2000.

Michael Rohde


@Helmut: Grüße von der schönen Ostsee.
 
H

Helmut Weber

Hi Michael,
I guess, there must be something else wrong.
I've tried it a dozen times,
used the same method for the posting
"getting a line from another document."
....
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
Word XP, NT 4.0
 
S

songq

i think you should do as the following
dim app as new word.application
app.visible =false
dim doc as word.document
set doc = app.documents.open("...")
....
doc.close
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top