A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Extracting CC Email Address Using VBA



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old November 23rd 09, 03:38 PM posted to microsoft.public.outlook.program_vba
ejek6337
external usenet poster
 
Posts: 4
Default Extracting CC Email Address Using VBA

Thanks a million. The recipients object worked like a charm. I knew I was
just overlooking something. Thanks for the direction.

Ed

"Michael Bauer [MVP - Outlook]" wrote:



See the Recipients collection, and check the type property of each recipient
object.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Fri, 20 Nov 2009 12:14:01 -0800 schrieb ejek6337:

Hello,

I have the current code that works for extracting various information from
the MailItem Object:

If itm.Class = olMail Then
Set msg = itm
objWks.Cells(i + 1, 1) = msg.Subject
objWks.Cells(i + 1, 2) = msg.ReceivedTime
objWks.Cells(i + 1, 3) = msg.SenderName
objWks.Cells(i + 1, 4) = msg.SenderEmailAddress
objWks.Cells(i + 1, 5) = msg.Body
objWks.Cells(i + 1, 21) = msg.CC
objWks.Cells(i + 1, 22) = msg.To

It is dumpting the data into an excel spreadsheet. I am able to extract

the
sender email address with "SenderEmailAddress". Is there any possible way

to
extract all the CC Email Addresses as well? The "CC" above only extracts

the
name(s) in the field, not the actual email address. If there is not way

to
do it I don't want to waste my time researching further. Thank you for

any
information you can provide.

Ed

.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting OE 2007 Address book to .xls? small caps Outlook - General Queries 5 August 3rd 09 01:56 AM
EXTRACTING EMAIL ADDRESSES FROM INBOX Gaby Huut Bay Outlook - Using Contacts 1 June 26th 08 07:57 PM
Extracting info from an Outlook email Rob Outlook and VBA 3 November 5th 07 04:48 PM
Extracting email body (only last one) rg Outlook and VBA 1 February 27th 06 06:17 AM
extracting email messages out of Journal Martin Rhodes Outlook - General Queries 0 January 30th 06 11:05 PM


All times are GMT +1. The time now is 03:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.