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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail Routing Problem

Status
Not open for further replies.

Arthur1

MIS
Apr 8, 2003
28
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top