View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default How do I send a document as attachment and fill in email address?

The referenced article seems to refer to Access, and the result seems to
send the object (and none of the objects described is a Word document, much
less a protected form) in the body of the email. If the arguments in the
SendObject Action that provide the recipient, subject line, etc., are
applicable to a Word VBA command, however, this would be helpful.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"alborg" wrote in message
...
Hi Ray:

You might wish to look into the SendObject Action, selecting all the text
in
your document and sending it off either as a txt or rtf among other
document
types.

URL: http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

Cheers,
Al

"Ray7071" wrote:

I have created a Word 2000 Document as a Form. On the Form I have a
Button
which can send the whole Form (Document) as a Mail Attachment by using
the
following (which i copied from the help file by searching around)...

Private Sub CommandButton1_Click()
Options.SendMailAttach = True
ActiveDocument.SendMail

End Sub

When the Buton is 'Clicked' it Opens Outlook Express with the Form
attached
OK. So far - so good.

How can I arrange for the Button to ALSO fill in the email address i.e
the
'To:' Address with an address of my choice thus automating the return of
the
filled form to me? At prewsent a user has to fill in my email address
and
could (often does) make a mistake.

Finally, will the Button work with earlier and later versions of 'Word'

Thanks, Ray7071