Advertisement

10.02.2007 at 08:26AM PDT, ID: 22866610
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Embedded Msg, in Outlook, with a Word Doc - how to get at Embedded Msg as Attachment?

Asked by mitchellm44 in Microsoft Access Database, Visual Basic Programming, Outlook Groupware Software

Tags: , ,

I have code that I have experimented with, that is looking at a particular Mail folder, and looking for infomation within an attachment, that has an attachment.
An Email in the inbox, has an embedded email message, that has a Word Document attached.
So, Last Sender, sends an email, from First Sender that is an embedded attachment, and There is
a Word Document from First Sender.

I can get to the embedded email- of First Sender which looks like a FILE with an extension of .Msg
and I can save that to disk, and when I open it from disk, I see the word Doc attachment.

 Dim objOutLook As Outlook.Application
     Dim objNameSpace As Outlook.NameSpace
     Dim objFolders As Outlook.Folders
     Dim objFolder As Outlook.MAPIFolder
     Dim objItem As Outlook.MailItem
     Dim objAttachment As Attachment
     Dim objParmAttachment As Object
     Dim objFSO As FileSystemObject
     Dim strSaveToPath As String
     Dim strFilename As String
     Dim intCount As Integer
   
   
    strSaveToPath = "C:\Data\Test\"
         Set objOutLook = CreateObject("Outlook.Application")
     Set objNameSpace = objOutLook.GetNamespace("MAPI") ' Reference Outlook namespace
     Set objFolders = objNameSpace.Folders.Item("Mailbox - Support").Folders
     If objFolders.Count > 0 Then
     Set objFolder = objFolders.Item("Inbox")
     '* the objFolder of the Inbox has the Items to be Processed
     '* We can then get access to each item by looping through the inbox
     '* And we can determine if there are attachements in the item.
     Set objItem = objFolder.Items(1)
     If objItem.Attachments.Count > 0 Then
        Set objAttachment = objItem.Attachments.Item(1)
        Set objFSO = CreateObject("Scripting.FileSystemObject")
        strFilename = objAttachment.FileName
        intCount = 1
        Do While True
            If objFSO.FileExists(strSaveToPath & strFilename) Then
                strFilename = objFSO.GetBaseName(objAttachment.FileName) & "(" & intCount & ")." & objFSO.GetExtensionName(objAttachment.FileName)
                intCount = intCount + 1
            Else
                objAttachment.SaveAsFile strSaveToPath & strFilename
                Exit Do
            End If
        Loop
       
     End If

.......... END OF CODE CLIP

I am hitting my head on the wall trying to see how to get this.
Start Free Trial
 
Loading Advertisement...
 
[+][-]10.02.2007 at 04:55PM PDT, ID: 20003115

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.03.2007 at 08:16AM PDT, ID: 20007283

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.03.2007 at 09:46AM PDT, ID: 20008072

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.04.2007 at 10:59AM PDT, ID: 20016221

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Visual Basic Programming, Outlook Groupware Software
Tags: embedded, outlook, attachment
Sign Up Now!
Solution Provided By: mitchellm44
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.04.2007 at 04:40PM PDT, ID: 20018728

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.05.2007 at 02:48AM PDT, ID: 20020537

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.05.2007 at 10:53AM PDT, ID: 20024039

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628