T
Tinytall
I found a way to send a document via email from within the document, creating
a button with the activedocument.sendmail function. However, I can't seem to
find a way to add a specified recipient, or change the subject line. It does
open the email with the document attached, but I want to force a TO:
recipient, and change the subject line.
http://support.microsoft.com/default.aspx?scid=kb;en-us;209248
I have found a similar code set that does allow me to accomplish adding a
TO: recipient, and change the subject, but it is using Routing Slips, which
also does not actually open the email, rather creates the email, adds the
document, changes the subject, puts in the TO: recipient, and sends it,
giving the sender no options.
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "Customer Survey"
.AddRecipient "(e-mail address removed)"
'.AddRecipient "(e-mail address removed)"
.Delivery = wdAllAtOnce
End With
ActiveDocument.Route
End Sub
I'd like to combine the two functions taking the result of the first one,
and adding the recipient and change the subject and allow the user to send at
their discretion.
Thanks
a button with the activedocument.sendmail function. However, I can't seem to
find a way to add a specified recipient, or change the subject line. It does
open the email with the document attached, but I want to force a TO:
recipient, and change the subject line.
http://support.microsoft.com/default.aspx?scid=kb;en-us;209248
I have found a similar code set that does allow me to accomplish adding a
TO: recipient, and change the subject, but it is using Routing Slips, which
also does not actually open the email, rather creates the email, adds the
document, changes the subject, puts in the TO: recipient, and sends it,
giving the sender no options.
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "Customer Survey"
.AddRecipient "(e-mail address removed)"
'.AddRecipient "(e-mail address removed)"
.Delivery = wdAllAtOnce
End With
ActiveDocument.Route
End Sub
I'd like to combine the two functions taking the result of the first one,
and adding the recipient and change the subject and allow the user to send at
their discretion.
Thanks