I have a command button at the end of a form to prompt users to save the
document to their desktop. Does anyone know the code to do this?

Re: Save button in Word by Word

Word
Tue Mar 07 09:52:48 CST 2006

G'day Manix <Manix@discussions.microsoft.com>,

If you have a SOE, then you may be lucky enough to find the StartUp
folder is in their profile path. With a wee bit of editing, this
string can be used to calculate their desktop folder.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Manix reckoned:

>I have a command button at the end of a form to prompt users to save the
>document to their desktop. Does anyone know the code to do this?


Re: Save button in Word by Steve

Steve
Tue Mar 07 20:24:56 CST 2006

Assuming your users will all have Win98 or beyond, the following lines will
return the string for the path to the desktop, to which you can add your
chosen file name.

Const Desktop = &H10&
Set objShell = CreateObject("Shell.Application")
Set objFldrDesk = objShell.Namespace(Desktop)
strDeskPath = objFldrDesk.Self.Path
MsgBox strDeskPath


Steve Yandl



"Manix" <Manix@discussions.microsoft.com> wrote in message
news:0ED60803-D693-4BB2-A207-B88BE9F51700@microsoft.com...
>I have a command button at the end of a form to prompt users to save the
> document to their desktop. Does anyone know the code to do this?