+ Reply to Thread
Results 1 to 8 of 8

Transfer Outlook Mail data to Excel

  1. #1
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    Transfer Outlook Mail data to Excel

    Hi, I am trying to export the MS Outlook email data ( Sender name, Subject, Mail body and Date and Time stamp From a Shared Mailbox to excel and need URGENT help in fixing the VBA code for the same.

    I had tried using below code, but this pulls the data from only your current inbox ( and not the shared one) . EG : If my shared mail box name / path is "eTransfer" -> "Inbox", how do i incorporate this in below code?

    Any help will be appreciated.


    VBA Code:
    ____________________

    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 04-24-2020 at 02:18 AM. Reason: Code tags

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Transfer Outlook Mail data to Excel

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  3. #3
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Transfer Outlook Mail data to Excel

    Does this help?
    Please Login or Register  to view this content.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    Re: Transfer Outlook Mail data to Excel

    Thank you. I tried this code but getting this error : Compile Error: User Defined Type not Defined. Code is getting stopped at the very first line : Dim olApp As Outlook.Application, olNs As Outlook.Namespace.

    Please help.

  5. #5
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Transfer Outlook Mail data to Excel

    References

    It's an error that appears when a reference is missing.
    In the VBA zditor
    Try to add in Tools-> References:

    Microsoft Excel [Your Version] Object Library
    Microsoft Outlook [Your Version] Object Library
    references.png

  6. #6
    Registered User
    Join Date
    04-23-2020
    Location
    Canada
    MS-Off Ver
    MS Office 365 ProPlus
    Posts
    32

    Re: Transfer Outlook Mail data to Excel

    This was Awesome. I tried again.. works like magic.. thank you so much

  7. #7
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Transfer Outlook Mail data to Excel

    Thanks for the feedback.

  8. #8
    Registered User
    Join Date
    01-28-2020
    Location
    Barceona
    MS-Off Ver
    365
    Posts
    1

    Re: Transfer Outlook Mail data to Excel

    Hello team,
    Good answer.

    and if we need to export all e-mails from all folders/subfolders from the same mail address?
    I have 3 differents mail address (mailbox), but every week, I need to export all e-mail from all these 3 mailbox and of course all folders and subfolders (more than 100 every mailbox).
    So I spent more time searching internet option for export all e-mails including all subfolders, but.. no way.
    So do you know, and alternative?
    Thank so much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Compose a mail (outlook) from Excel Data
    By Raj.xls in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-25-2019, 04:10 AM
  2. Automating transfer of Outlook emails data to Excel
    By yawwwn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2015, 02:01 AM
  3. code to compose outlook mail with the excel data
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2014, 04:53 AM
  4. How to extract data from Outlook Mail to Excel (VBA)
    By rafeemd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-21-2011, 01:16 AM
  5. Transfer data from Excel to Outlook Calendar
    By Hatye in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-10-2011, 05:19 AM
  6. Replies: 3
    Last Post: 07-07-2006, 04:10 PM
  7. [SOLVED] HOW DO I TRANSFER DATA FROM EXCEL SPREADSHEET TO OUTLOOK
    By msmagoo in forum Excel General
    Replies: 1
    Last Post: 01-16-2006, 01:40 PM

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.6.0 RC 1