![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
In Outlook 2003 I had a macro to extract embedded images.
This is it Sub SaveAttachment() Dim objCurrentItem As Outlook.MailItem Dim colAttachments As Outlook.Attachments Dim objAttachment As Outlook.Attachment Set objCurrentItem = Application.ActiveInspector.CurrentItem Set colAttachments = objCurrentItem.Attachments Set strFolderpath = CreateObject("WScript.Shell") For Each objAttachment In colAttachments objAttachment.SaveAsFile ("D:\Doug\anni" & "\" &objAttachment.FileName) Next Set objAttachment = Nothing Set colAttachments = Nothing objCurrentItem.Close (olDiscard) Set objCurrentItem = Nothing End Sub I don't know VBA. However when I put this macro in Outlook 2007 I get this error message "Object variable or With block variable not set" Can someone help me? Regards Doug |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving images embedded in the body of the message | Chappy | Outlook - General Queries | 8 | June 5th 09 03:16 PM |
Outlook 2007 message embedded images moved to file | Michael Bell | Outlook - Installation | 0 | September 21st 08 02:44 PM |
All my embedded images in Outlook have disappeared | Eileen Amid | Outlook - General Queries | 2 | November 15th 07 01:56 PM |
After Sending Email Cannot See Embedded Images (Outlook 2003) | sg | Outlook - General Queries | 0 | March 13th 07 01:48 PM |
Outlook send embedded images as attachments | M.C | Outlook - General Queries | 7 | October 26th 06 02:56 PM |