I found a code on the internet that met your needs and I am providing below so that others who need to use.
Code:
Sub Email_var1()
Dim insert As String
Dim order As Long
end = Plan1.UsedRange.Rows.Count
insert Plan1.Cells = (2, 1)
For row = 3 To order
insert = insert & "" & Plan1.Cells (line, 1)
Next line
Set oOutlookApp = CreateObject ( "Outlook.Application")
Set oOutlookMessage = oOutlookApp.CreateItem (0)
With oOutlookMessage
. Subject = "TEST SHIPPING"
. To = insert
. display
Set = oOutlookMessage.Attachments Annex
anexo.Add "C:\Documents and Settings\user name\Desktop\PID OESTE.XLS CENTER",olByValue,1,"Test"
. Send
End With
End Sub
Bookmarks