Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 97 - automatically email document 1

Status
Not open for further replies.

Elessar

Technical User
Sep 9, 2001
2
GB
I have created a form in Word and I want the user to be able to complete the form, then click on a button to email the form to a pre-determined recipient.
I know you can use 'activedocument.sendmail' but the user is prompted for a recipient, if I already know the recipients name why can't I use VBA to insert it. This can be easily done in Excel so why can't it be done in Word?
 
on 2000:

...
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "Project Documentation"
.AddRecipient "ide@altavista.net"
.ReturnWhenDone = False
End With
ActiveDocument.Route
ActiveDocument.RoutingSlip.Reset
ActiveDocument.HasRoutingSlip = False
...

but in this way in the first line of the mail is a message what appears: "The attached document has a routing slip. You are the last recipient; no further routing is necessary."
 
This works a treat in Word 97, many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top