Lee
Wed Jan 28 16:55:01 CST 2004
I have written other code that runs when the user fills in
a user form and this code saves the original to another
place (e.g. on a network) so the document is already
saved. We do not have harddrives as we use dumb terminals
due to being on a network....
>-----Original Message-----
>One other concern is that your code does not save to the
hard drive first.
>You may end up with different variations on your intranet
than on the
>originator's hard drive.
>--
>
>Charles Kenyon
>
>See the MVP FAQ: <URL:
http://www.mvps.org/word/> which
is awesome!
> --------- --------- --------- --------- --------- -------
--
>This message is posted to a newsgroup. Please post replies
>and questions to the newsgroup so that others can learn
>from my ignorance and your wisdom.
>
>"Lee" <anonymous@discussions.microsoft.com> wrote in
message
>news:4fda01c3e533$e12e0c10$a301280a@phx.gbl...
>> 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
>
>
>.
>