Geduld is een schone zaak.
Code:
Sub verzenden()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim CurrFile As String
Dim BCC_Lijst As String
Dim lRij As Long
lRij = 1
While Range("A" & lRij) <> ""
BCC_Lijst = BCC_Lijst & Range("A" & lRij) & ";"
lRij = lRij + 1
Wend
BCC_Lijst = Left(BCC_Lijst, Len(BCC_Lijst) - 1)
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.To = ActiveSheet.ComboBox1.Text
.BCC = BCC_Lijst
.Subject = "Helpmij"
.Body = ActiveSheet.Range("B1").Text & vbCrLf & ActiveSheet.Range("B2").Text
.Display
.Send
End With
Set olMail = Nothing
Set olApp = Nothing
End Sub
Bovenstaande code zoekt in de A-kolom totdat een lege cel gevonden wordt.
De gevonden waardes worden in de BCC toegevoegd.
De titel van de email = Helpmij.
De tekst van het bericht worden uit de cellen B1 en B2 gehaald.
Met vriendelijke groet,
Roncancio