L
Lee
I am wanting to find out the code for file name. I have
documents that need a copy automatically saved to a
different location on close (for intranet purposes) but am
unsure how to save the doc as it's original name (where
the ???? are below). The coding I have so far 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
Me.SaveAs "\\ruth\inetpub\wwwroot\apps\news\newsreleases\"
& ????, wdFormatFilteredHTML
End If
End Sub
Thanks
documents that need a copy automatically saved to a
different location on close (for intranet purposes) but am
unsure how to save the doc as it's original name (where
the ???? are below). The coding I have so far 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
Me.SaveAs "\\ruth\inetpub\wwwroot\apps\news\newsreleases\"
& ????, wdFormatFilteredHTML
End If
End Sub
Thanks