M
Mike MrMunka Gillingham
Ok, I'm having a terrible time doing this. Nothing is working like I need.
I have a few text box fields to be filled out and a simple button at the
bottom of the page to click on and have the document emailed to one email
address.
The code I have dug up here is using a routing slip or something and every
time I send the form, it attaches another email address to the TO: field. Now
I have like 12 of the same address all listed each time I send a new email
using this form.
Here's the code.
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "New subject goes here"
.AddRecipient "(e-mail address removed)"
.Delivery = wdAllAtOnce
End With
ActiveDocument.Route
End Sub
The form can be mailed as an attachment, I'm just having a hell of a time
getting what seems to be a simple task to work properly. Thanks in advance.
Mike
I have a few text box fields to be filled out and a simple button at the
bottom of the page to click on and have the document emailed to one email
address.
The code I have dug up here is using a routing slip or something and every
time I send the form, it attaches another email address to the TO: field. Now
I have like 12 of the same address all listed each time I send a new email
using this form.
Here's the code.
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Subject = "New subject goes here"
.AddRecipient "(e-mail address removed)"
.Delivery = wdAllAtOnce
End With
ActiveDocument.Route
End Sub
The form can be mailed as an attachment, I'm just having a hell of a time
getting what seems to be a simple task to work properly. Thanks in advance.
Mike