A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do I modify Delete button to also mark item as read?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 23rd 06, 07:29 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 6
Default How do I modify Delete button to also mark item as read?

The default Delete button in Outlook 2003, seems to delete the item,
without marking it as read. Is there a way that I can modify it to
first mark the item as read, then delete the item? Would I need to use
VBA to accomplish this? If so, could anyone tell the code I should
write, as I am not very familiar with using VBA in outlook. Thanks.

Ads
  #2  
Old April 24th 06, 06:14 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default How do I modify Delete button to also mark item as read?

Am 23 Apr 2006 11:29:21 -0700 schrieb :

This sample marks all items as read which are being moved into the
DeletedItems folder.

Private WithEvents Items As Outlook.Items

Private Sub Application_Startup()
Set Items =
Application.Session.GetDefaultFolder(olFolderDelet edItems).Items
End Sub

Private Sub Items_ItemAdd(ByVal Item As Object)
Item.Unread=False
Item.Save
End Sub

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.vbOffice.net --


The default Delete button in Outlook 2003, seems to delete the item,
without marking it as read. Is there a way that I can modify it to
first mark the item as read, then delete the item? Would I need to use
VBA to accomplish this? If so, could anyone tell the code I should
write, as I am not very familiar with using VBA in outlook. Thanks.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to move outbound email and mark as read? [email protected] Outlook and VBA 11 May 2nd 06 03:07 PM
Mark as read Sven Berg Outlook - General Queries 1 February 8th 06 09:20 AM
Outlook 2003 - automatically mark all Junk email as "read" Ric Outlook - General Queries 8 January 19th 06 01:52 PM
Command button not working on read page jbtempe Outlook - Using Forms 2 January 13th 06 11:25 PM
Mark as Read? After x seconds? HotRod Outlook - General Queries 2 January 12th 06 07:22 PM


All times are GMT +1. The time now is 04:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.