I am trying to save a copy of a document on closing. The
original document has already been saved but I want to
save a copy as filtered html to another location for
intranet purposes. The code I have is:
Private Sub Document_Close()
Dim Save2Intranet As Boolean
Save2Intranet = MsgBox("You are about to close. Do you
wish to save a copy to the intranet?", vbYesNo) = vbYes
If Save2Intranet Then
.SaveAs "C:\apps\news\newsreleases\" & strTitle,
wdFormatFilteredHTML
End If
End Sub
but this doesn't work.... Help!
Hi Lee
Try this instead:
Private Sub Document_Close()
If MsgBox("You are about to close. Do you wish to " & _
"save a copy to the intranet?", vbYesNo) = vbYes Then
ActiveDocument.SaveAs "C:\apps\news\newsreleases\" & _
ActiveDocument.Name, wdFormatFilteredHTML
End If
End Sub
HTH + Cheers - Peter
"Lee" <anonymous@discussions.microsoft.com> wrote in news:0deb01c3fb31
$2ec57e50$a001280a@phx.gbl:
> I am trying to save a copy of a document on closing. The
> original document has already been saved but I want to
[quoted text clipped - 15 lines]
>
> but this doesn't work.... Help!
Lee - 29 Feb 2004 22:18 GMT
Thanks Peter... This works... I've been racking my brain
over this one... Cheers
>-----Original Message-----
>Hi Lee
[quoted text clipped - 37 lines]
>
>.