Hello all,
For example I have an mail box:
name: TestingEML
@ name: testing.eml@test.com
The macro works like this:
1. Run Macro
2. Box with all email boxes pops up
3. Select the folder you need to extract emails from manually
4. The macro extracts all emails from the selected folder into a "Report" sheet
5. Done
There are some other stuff that is being done, but that is not that important at the moment.
My macro works fine, no problems, BUT, I need to add an additional column and for some reason I cant find the right name for the data.
Right now it extracts this information:
report.Range("A" & n) = olMail.Subject
report.Range("B" & n) = olMail.SenderName
report.Range("C" & n) = olMail.To & "; " & olMail.CC
report.Range("D" & n) = olMail.Parent.Name
report.Range("E" & n) = olMail.Categories
report.Range("F" & n) = olMail.ReceivedTime
report.Range("G" & n) = olMail.ConversationID
I`m trying to add something like this:
report.Range("H" & n) = olMail.Account
I work with multiple mailboxes, and sometimes when I have a lot of reports, it gets confusing from what exact mail box is that report. I have olMail.Parent.Name, so I know what folder I extracted.
For some reason I cant find way way to name olMail.??? so it would give me "TestingEML" in the H column.
Not sure if I make any sense..
Any advice please?
For example I have an mail box:
name: TestingEML
@ name: testing.eml@test.com
The macro works like this:
1. Run Macro
2. Box with all email boxes pops up
3. Select the folder you need to extract emails from manually
4. The macro extracts all emails from the selected folder into a "Report" sheet
5. Done
There are some other stuff that is being done, but that is not that important at the moment.
My macro works fine, no problems, BUT, I need to add an additional column and for some reason I cant find the right name for the data.
Right now it extracts this information:
report.Range("A" & n) = olMail.Subject
report.Range("B" & n) = olMail.SenderName
report.Range("C" & n) = olMail.To & "; " & olMail.CC
report.Range("D" & n) = olMail.Parent.Name
report.Range("E" & n) = olMail.Categories
report.Range("F" & n) = olMail.ReceivedTime
report.Range("G" & n) = olMail.ConversationID
I`m trying to add something like this:
report.Range("H" & n) = olMail.Account
I work with multiple mailboxes, and sometimes when I have a lot of reports, it gets confusing from what exact mail box is that report. I have olMail.Parent.Name, so I know what folder I extracted.
For some reason I cant find way way to name olMail.??? so it would give me "TestingEML" in the H column.
Not sure if I make any sense..
Any advice please?