H
Hal Tz
Look like I have the opposite problem of a lot of threads here. I'm a total
newbie to Word Automation, am doing Document.Close, and have tried
oWordDoc.Close SaveChanges:=wdPromptToSaveChanges,
OriginalFormat:=wdPromptUser
and many variation on it, it always closes the doc saving any changes
without ptompting. Here's the code snippet. Any ideas? Thanks.
Dim oWD As Word.Application
Dim oWordDoc As Word.Document
Set oWD = New Word.Application
Set oWordDoc = oWD.Documents.Open("c:\z.doc")
oWD.Visible = True
oWD.Activate
MsgBox ("hit OK to close")
oWordDoc.Close SaveChanges:=wdPromptToSaveChanges ,
OriginalFormat:=wdPromptUser
newbie to Word Automation, am doing Document.Close, and have tried
oWordDoc.Close SaveChanges:=wdPromptToSaveChanges,
OriginalFormat:=wdPromptUser
and many variation on it, it always closes the doc saving any changes
without ptompting. Here's the code snippet. Any ideas? Thanks.
Dim oWD As Word.Application
Dim oWordDoc As Word.Document
Set oWD = New Word.Application
Set oWordDoc = oWD.Documents.Open("c:\z.doc")
oWD.Visible = True
oWD.Activate
MsgBox ("hit OK to close")
oWordDoc.Close SaveChanges:=wdPromptToSaveChanges ,
OriginalFormat:=wdPromptUser