Getting around Outlook mail limits when using email lists from excel

jjlb82

New Member
Joined
Jun 28, 2017
Messages
1
Hello community,
I run a community contact scheme and I'm trying to automate our emailing system as our email lists are already on an excel spread sheet. Due to wanting to contact different groups for different things I put all the contacts in to a single spread sheet and attributed them to different groups. I then run a pivot table to allow filtering to specific groups. I then created a macro (I say created I assembled it from a couple of different answers I found on here and claim no great power of coding). Anyway it works well except I'm having to manually brake up the list to prevent it exceeding the limits on our outlook. How can I make it brake at 49 addresses and then open a new email?

Sub CommandButton2_Click()

Dim objOutlook As Object
Dim cell As Range
Dim Subj As String
Dim EmailAddr As String
Dim Recipient As String
Dim Msg As String

'Create Outlook object
' SET Outlook APPLICATION OBJECT.
Set objOutlook = CreateObject("Outlook.Application")

'Loop through the rows
For Each cell In Columns("E").Cells.SpecialCells(xlCellTypeVisible)
If cell.Value Like "*@*" Then
EmailAddr = EmailAddr & ";" & cell.Value
End If
Next

Msg = "Please review the following message."
Subj = "This is the Subject Field"

'Create Mail Item and view before sending
Dim objEmail As Object
Set objEmail = objOutlook.CreateItem(olMailItem)

With objEmail
.bcc = EmailAddr
.Display
End With

End Sub


Many Thanks for any help
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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