I am trying to send Ctrl + k to the outlook for the email drafted by the below macro. can someone advise what's going wrong since it's not working. It it just displays the email drafted on screen but doesn't checknames entered as email addresses in to field in outlook.
Code:
Sub SetRecipients()Dim aOutlook As Object
Dim aEmail As Object
Dim rngeAddresses As Range, rngeCell As Range, strRecipients As String
Set aOutlook = CreateObject("Outlook.Application")
Set aEmail = aOutlook.CreateItem(0)
Set rngeAddresses = ActiveSheet.Range("A3:A13")
For Each rngeCell In rngeAddresses.Cells
strRecipients = strRecipients & ";" & rngeCell.Value
Next
aEmail.Importance = 2
aEmail.Subject = "Indicator activity warning ( TestMailSend )"
aEmail.Body = "Please log onto the MIS v2 system to check status (( Indicator List))"
aEmail.To = strRecipients
aEmail.Display
[B]aEmail.Sendkeys "^K"[/B]
End Sub
Last edited: