Sending email to using different accounts

Rasmas

New Member
Joined
May 7, 2002
Messages
15
HI

I send daily stats to my dirctors via sms using email. I now need to send to all my reps awell. the problem is our SP only allows 5 messages per day per account. at the moment I have to manual select the mesage and send using a different account

I am using the following code
Sub EmailSend()
Dim ol As Object
Dim MailSendItem As Object
Set ol = CreateObject("Outlook.Application")
Set MailSendItem = ol.CreateItem(olMailItem)

With MailSendItem
.To = "martincell;andycell"
.Subject = "Daily Stats"
.Body = Cells(7, 1) & " " & Cells(7, 2) & vbCrLf & Cells(8, 1) & " " & Cells(8, 2) & vbCrLf & Cells(9, 1) & " " & Cells(9, 2) & vbCrLf & Cells(10, 1) & " " & Cells(10, 2)
.Importance = 2
.Send
End With
Set ol = Nothing
Set MailSendItem = Nothing

End Sub

Any One have any Ideas

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Are you using the same email program for all of them?

If I remember correctly, in Outlook Express (and probably Outlook itself), if you add them all to the Accounts lists, you should be able to choose which address is used to send it from a drop down list when you open a new email message.

Of course, if this doesn't apply, just disregard it :)

Hope it helps,
 
Upvote 0
HI

Yes you can But I have a Makro from Excel sending it to Outlook, I what to specify the account in excel so I dont have to sit and manual change the account to be used in outlook

RASMAs
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top