Found plenty of posts for forwarding a single email, but this is another issue. I have hundreds of emails, each containing between 3 and 8 attached email messages (not regular attachments like PDFs, etc.). How can I get a macro to forward each of those attached messages in its own individual email? Been trying code like the snippet below but of course it stops at the asterisks. Grateful for any clues.
Sub ForwardEachAttachmentIndividually()
Dim OA As Application, OI As Outlook.Inspector, i As Long
Dim msgx As MailItem, msgfw As MailItem
Set OA = CreateObject("Outlook.Application")
Set OI = Application.ActiveInspector
Set msgx = OI.CurrentItem
For i = 1 To msgx.Attachments.Count
If Right(msgx.Attachments(i).DisplayName, 4) = ".msg" Then
Set msgfw = CreateItem(olMailItem)
msgfw.Display
msgfw.Attachments.Add msgx.Attachments(i) '***nggh
msgfw.Attachment(i).Forward
msgfw.Recipients.Add "zelda@foobar.com"
msgfw.Send
End If
Next
End Sub