I believe that pictures in HTML emails are actually attachments. Have you tried iterating through the Attachments collection? What happens when you run this code on one of those emails? If the messagebox shows a number greater than zero, then all you need to do is set an object reference to each attachment and save it.
Sub CountAttachments()
Dim MyItem As Outlook.MailItem
On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
Case "Explorer"
Set MyItem = ActiveExplorer.Selection.item(1)
Case "Inspector"
Set MyItem = ActiveInspector.CurrentItem
Case Else
End Select
On Error GoTo 0
If MyItem Is Nothing Then
GoTo ExitProc
End If
MsgBox MyItem.Attachments.Count
ExitProc:
Set MyItem = Nothing
End Sub
Originally Posted by
anandbohra
Dear All,
Actuall I had subscribed to a group who send me mails every day (10-15) conataining pictures (as html page & not as attachment) so to save the pictures manually I have to right click on the same & select save picture & save it on the pc but process is manually & very hectic.
so i am requersting u all that can a macro or vba code can be done for the same which can run this proces & save all pictures contained in the emails to the predetermined location.
awaiting for an earliest reply.