Hello Novice_704,
The recipients are added as an Array (see the code) with the names separated by commas. I have run the macro with only names that were in my address book. I haven't tested it using an email address in the Recipients.
Sub Macro3()
Dim olApp As Outlook.Application
Dim olNamespace As Outlook.Namespace
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
SendersName = olNS.CurrentUser
ThisWorkbook.HasRoutingSlip = True
With ThisWorkbook.RoutingSlip
.Delivery = xlAllAtOnce
.Recipients = Array("[email protected]", SendersName)
.Subject = "Routing: New Owner Form"
.Message = "Your Request has been received and will be added as a New Owner!"
.ReturnWhenDone = False
.TrackStatus = False
End With
ThisWorkbook.Route
MsgBox Prompt:="Email has been sent to Portfolio User Support" & MyVar, _
Title:="Confirmation", _
Buttons:=vbOKCancel
Range("E7:M7").Select
olApp.Quit
Set olApp = Nothing
Set olNS = Nothing
End Sub
If you have any problems with this code, please let me know.
Sincerely,
Leith Ross
Bookmarks