+ Reply to Thread
Results 1 to 2 of 2

VBA to Extract Table from Email Body to Excel

  1. #1
    Registered User
    Join Date
    04-14-2020
    Location
    Bangladesh
    MS-Off Ver
    Office 2016
    Posts
    1

    Post VBA to Extract Table from Email Body to Excel

    I've got following code to extract Table from Outlook email body to excel & it is working fine in Office 2016. But when i try to run this macro in excel 2013 it gives me following error.
    Initially it provides the error for missing references & when i change all the 16.0 object libraries with the 15.0 for office 2013 it provides following error message.

    "Run-time error '438'
    Object doesn't support this property or method"

    And error comes for following line:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Can anyone help me to make this code executable in both 2013 & 2016 version.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: VBA to Extract Table from Email Body to Excel

    Hi and welcome to ExcelForum:

    You probably need to declare the following constants in your routine:
    Please Login or Register  to view this content.
    You can avoid the library problems by replacing calls like:
    Please Login or Register  to view this content.
    You are using 'Late Binding' which does not require Library References, but if the libraries are not referenced:
    a. constants have to be explicitly declared
    b. Specific Objects have to be replaced with the generic 'Object'.

    See the following for a discussion of 'Early Binding' vs 'Late Binding'. It is a matter of personal preference.

    Lewis

+ 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] Extract Month and year in VBA Code to email in body of email
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2019, 02:30 PM
  2. [SOLVED] Extract Email Body Info using Excel VBA
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2018, 06:58 PM
  3. Extract multiple lines of text from Outlook email body into Excel
    By Ranger75 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2018, 03:47 PM
  4. RE: Extract body from email
    By djtprior in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2015, 08:36 AM
  5. Replies: 1
    Last Post: 09-16-2014, 05:01 PM
  6. excel table in body of CDO email
    By 13lack13lade in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2014, 12:50 AM
  7. If a Table is in the body of a mail.. want to extract the same in to the excel cells
    By anchuri_chaitanya in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2011, 05:38 AM

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