Results 1 to 4 of 4
  1. #1
    Lounger
    Join Date
    Mar 2001
    Location
    Feltham, Middlesex, England
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mark as Read macro (2003)

    One of the (many) things that annoys me about Outlook is that, if I delete an unread mail after viewing it quickly in the preview pane, it goes into the Deleted Items folder marked as unread and, later, I find myself going in to check whether it's something i deleted by mistake. Having had a fair bit of experience with VBA in Excel and, to a lesser extent, Word, I thought I would try to write a 'Mark as read and delete' macro.

    I assumed there would be either a MarkAsRead method or a Read property, but looking in the Help information and one or two books I had around, I couldn't find either and didn't have a clue where to start.

    I'm sure this is easy when you know how, and would be very grateful if someone would point me in the right direction.

    Mike Jones

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Washington, USA
    Posts
    750
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mark as Read macro (2003)

    Mike,

    The property you want is "unread" as in item.unread=False
    The method to delete is for example item.delete

    Using unread as the property name seemed like yet another example of MS ' humor, but then "read" is a method name. I guess you can't have it both ways...

  3. #3
    Lounger
    Join Date
    Mar 2001
    Location
    Feltham, Middlesex, England
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mark as Read macro (2003)

    Thanks, OldDog,

    Surely any old computer knows that 'Read' and 'Read' are pronounced differently ;-)

    I'll remember that unread=not(read) and delete=don't(keep) and take it from there. No doubt valuable learning experience to come.

    Thanks again,

    Mike

  4. #4
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Confoederatio Helvetica
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mark as Read macro (2003)

    Mike,
    If you are successful, could you post your Macro. I could use it too? <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •