+ Reply to Thread
Results 1 to 4 of 4

Running vlookup from Outlook macro

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Running vlookup from Outlook macro

    I have an outlook macro that wants to do a vlookup in an excel file. I keep getting the run time error "Object doesn't support this property or method".
    Please Login or Register  to view this content.
    In Excel, I use Application.VLookup and it works. I have tried many combinations but I cant find the one that works.

    Anyone know? Thanks very much

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Running vlookup from Outlook macro

    You need this.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Running vlookup from Outlook macro

    That gave me a different error - Unable to get the Vlookup property of the WorksheetFunction class

    I just added this to my Outlook setup too....still trying
    Microsoft Excel 14.0 Data Objects library. Go to Tools -> References.
    Last edited by steve wilson; 12-04-2015 at 10:18 PM.

  4. #4
    Registered User
    Join Date
    11-09-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Running vlookup from Outlook macro

    Solved, if your lookup value isnt found, you get a runtime error
    Please Login or Register  to view this content.
    works. So does xl.VLookup and WorksheetFunction.Vlookup.

+ 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. running vba outlook macro from cmd line prompt
    By craigm2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 04-06-2015, 11:02 AM
  2. [SOLVED] Outlook macro isn't running
    By ddaann182 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-21-2014, 04:42 PM
  3. Running Excel Macro using Outlook reminder
    By kiran527 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-11-2013, 04:16 AM
  4. Export from Excel to Outlook, Outlook has to be running?
    By christian2012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2013, 07:01 PM
  5. Excel and Outlook become "NOT RESPONDING" when running Macro
    By g1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2012, 03:28 PM
  6. Incorrect calculation of Vlookup value when running Macro
    By Kreef in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-26-2011, 03:50 AM
  7. excel open in outlook if outlook is running
    By kirk in forum Excel General
    Replies: 0
    Last Post: 05-24-2006, 01:45 PM

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