+ Reply to Thread
Results 1 to 2 of 2

reply on last sent mail (from excel to outlook)

  1. #1
    Registered User
    Join Date
    05-19-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    reply on last sent mail (from excel to outlook)

    Hi everyone !

    I was looking for a way to create a macro that would allow me to:

    - 1 - read a list of mail address (written in the same column in Excel)
    - 2 - then for each mail address, search in Outlook (let's make it search in "All Outlook Items" to make it more general) and then open the last item related to this mail address
    - 3 - once this item is opened (let's make it simple and assume it is a mail), reply while adding a short text and an attachment
    - 4 - eventually send the reply

    I know how to write steps 1, 3 and 4 but I'm currently stuck on the step 2: I know how to use vba to lookup in Outlook for an item from Excel but can not find the way to ask to open the last sent/received item: it will open a random item.

    In case there is only one item it's perfect, but it's more complicated when you have more items.

    Would anyone have a clue on this ?! I hope you will find this as challenging as I am !

    Have a very nice afternoon,

    Best

    Alex

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: reply on last sent mail (from excel to outlook)

    You might try putting all the messages into a 2D array with a second column holding the date received. Then scan the array for the row with the maximum date and then open the message.
    Martin

+ 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] Code to send mail copying from Excel to a new outlook mail.
    By paz1987 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2015, 07:54 AM
  2. Keep Macro in tact Excel to Outlook, the Outook reply back to Excel
    By Jackieb302 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2015, 06:25 PM
  3. [SOLVED] screenshot text file and embed in outlook mail through excel with mail info
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-11-2015, 08:21 PM
  4. Excel VBA to get whether Reply has sent or not for a Outlook Mails Item
    By taps in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2012, 05:02 AM
  5. Reply from outlook using Excel
    By avi.ani1703 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-13-2012, 05:35 AM
  6. Using Excel VBA Macro to Reply to email in Outlook
    By thechancellor in forum Excel General
    Replies: 0
    Last Post: 06-19-2012, 09:40 PM
  7. [SOLVED] Reply to outlook email from excel script
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2006, 12:00 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