More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 06-Sep-2010 21:18

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Basic Outlook Printer Friendly Version
Working with Outlook items, folders, recipients; dealing with security; writing event handlers
Topic
Deleting Calendar Entries
My company has a very small limit on how big my Outlook storage can be (50mb). My Calendar is now taking up 21 mb of that so I want to delete a bunch of my old entries to free up the memory.
Can someone share some VBA code to specify a date range and have all the calendar entries within the date-range deleted?
Thanks,
Kier

  30-Jul-2010  15:01
  31-Jul-2010  13:12   
The easiest way to accomplish this is not to write VBA code, but instead to use the built-in AutoArchive feature, which you can configure on the folder's Properties page.

If you decide you still want to write code, start with the information at http://www.outlookcode.com/article.aspx?id=30 on how to return a collection of items filtered over a date range.
  02-Aug-2010  08:25   
Sue,
Thanks for the quick response. Maybe it's the way that my Outlook is configured but I don't see a folder named Calendar. Should I?
 
  02-Aug-2010  09:37   
You wrote: "My Calendar is now ..." If you're referring to a folder that isn't named Calendar, then use either of the same techniques on that folder.
    Page [ 1 ]  
Post a new message to this topic.



name        email