+ Reply to Thread
Results 1 to 3 of 3

Thread: Need a macro to extract email data to excel

  1. #1
    Registered User
    Join Date
    07-04-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need a macro to extract email data to excel

    Hi all
    I need a macro that extracts details from the body of an email, into an excel spreadsheet.
    Thanks in advance. Certain details from an email need to be pulled through to a spreadsheet from the body. Each line of data from the email needs to be pulled through into a new column of the spread sheet.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    412

    Re: Need a macro to extract email data to excel

    Hi,

    I have folowing idea:
    1. save your e-mail into html or txt file
    2. import whole file into excel
    3. attach XLS file here

    Then we will help you to filter e-mails

    Best Regards
    MaczaQ

  3. #3
    Forum Guru snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,151

    Re: Need a macro to extract email data to excel

    To write the bodytext of all emails in PostIn into column D:

    sub snb()
      for each it in CreateObject("Outlook.Application").GetNamespace("MAPI").GetDefaultFolder(6).Items
         c01 = c01 & "|" & it.body
       Next
       sn=split(mid(c01,2),"|")
    
       cells(1,4).resize(ubound(sn))=application.transpose(sq)
    End Sub



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0