Results 1 to 7 of 7

Thread: Extract Email Details For All Incoming Mails Using VBA In Outlook

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    14
    My preference:

    Code:
    Sub email_ontvangen_lezen()
      With CreateObject("Outlook.Application").GetNamespace("MAPI").GetDefaultFolder(6)
        redim sn(.items.count,2)
     
       j=0
        for each it in .Items
          sn(j,0)=it.To 
          sn(j,1)=it.subject
          sn(j,2)=it.body
          j=j+1
        next
      End With
    
      thisworkbook.sheets(1).cells(1).resize(ubound(sn)+1,ubound(sn,2)+1)=sn
    End Sub
    Source:
    http://www.snb-vba.eu/VBA_Outlook_external_en.html#L153
    Last edited by snb; 05-25-2013 at 04:05 PM.

Similar Threads

  1. Replies: 26
    Last Post: 10-22-2019, 02:39 PM
  2. VBA To Extract Email Address From Text
    By dunndealpr in forum Excel Help
    Replies: 43
    Last Post: 06-05-2019, 03:56 PM
  3. Replies: 2
    Last Post: 05-23-2013, 08:08 AM
  4. Replies: 1
    Last Post: 05-22-2013, 01:50 PM
  5. How To Send Outlook Email Using VBA
    By mfaisalrazzak in forum Excel Help
    Replies: 7
    Last Post: 03-03-2013, 03:09 AM

Posting Permissions

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