Hi All,
You guys have been able to help in the past and I am hoping that you can work your magic again.
I am trying to create a Macro in Word that would route a word document after a user is finshed filling it out by clicking on a button. The problem is if I use this document from outside, the company it can't seem to find the e-mail address? I read something to the extent that in order to use the RoutingSlip the reciepent must be in the Global Address Book, but I am not sure what this means? Thank you in advance for any help. I have the code below:
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Protect = wdAllowOnlyComments
.Subject = "Testing ABC"
.AddRecipient Recipient:="someone@abc.com"
.AddRecipient Recipient:=""someoneelse@abc.com"
.Delivery = wdAllAtOnce
.ReturnWhenDone = False
.TrackStatus = False
End With
ActiveDocument.Route
MsgBox "Document Sent.", vbInformation, "Document Sent"
ActiveDocument.HasRoutingSlip = False
End Sub
You guys have been able to help in the past and I am hoping that you can work your magic again.
I am trying to create a Macro in Word that would route a word document after a user is finshed filling it out by clicking on a button. The problem is if I use this document from outside, the company it can't seem to find the e-mail address? I read something to the extent that in order to use the RoutingSlip the reciepent must be in the Global Address Book, but I am not sure what this means? Thank you in advance for any help. I have the code below:
Private Sub CommandButton1_Click()
ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
.Protect = wdAllowOnlyComments
.Subject = "Testing ABC"
.AddRecipient Recipient:="someone@abc.com"
.AddRecipient Recipient:=""someoneelse@abc.com"
.Delivery = wdAllAtOnce
.ReturnWhenDone = False
.TrackStatus = False
End With
ActiveDocument.Route
MsgBox "Document Sent.", vbInformation, "Document Sent"
ActiveDocument.HasRoutingSlip = False
End Sub