+ Reply to Thread
Results 1 to 3 of 3

EXCEL VBA - Problem to search an email in Outlook folder

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    EXCEL VBA - Problem to search an email in Outlook folder

    Hi All,

    I have a code for EXCEL VBA that searches for email messages in certain folder of Outlook ( both 2007 version). However, the comparison starts from the lastest email in the folder and not from the first email. ( in Outlook, I prefer to keep the email messages sorted as Newest first and would like to get the first email that matches the subject line provided.

    Can you please help me reverse the order in which the EXCEL VBA is searching for the email? Below is the code:


    Please Login or Register  to view this content.


    Thanks in advance for help.


    Regards,
    Ganesh K
    Last edited by arlu1201; 10-21-2013 at 05:08 AM.

  2. #2
    Registered User
    Join Date
    08-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: [ Solved] EXCEL VBA - Problem to search an email in Outlook folder

    Solved it somehow...

    Please Login or Register  to view this content.

    For me, this is checking if there are any replies for that email as well and opens the newest email for the reply.
    Last edited by arlu1201; 10-21-2013 at 05:08 AM.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: EXCEL VBA - Problem to search an email in Outlook folder

    Welcome to the forum.

    I have added code tags to both your posts. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 0
    Last Post: 06-26-2013, 01:18 PM
  2. Problem amending email subject in Outlook using Excel VBA
    By madbloke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2012, 12:09 PM
  3. Problem with Excel accessing an Outlook email body
    By krussell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2009, 04:15 PM
  4. search outlook contacts in excel and return email address to variable
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2008, 06:08 PM
  5. Excel Email with Outlook - Mailbox full problem
    By ging18 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-01-2006, 12:42 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