Results 1 to 4 of 4

Thread: Clearing/Deleting all Public Folders through VBA

  1. #1
    KishanDavdra is offline Junior Member Outlook 2007
    Exchange Server account
    Join Date
    Dec 2012
    Posts
    3

    Question Clearing/Deleting all Public Folders through VBA

    Our company often updates and replaces the contacts stored on Public folders, and I would like to know whether there is a way in which I can speed up this process.


    Is it possible to devise a macro which will automatically clear all contacts held in the Public folders?


    Any help on this matter would be much appreciated...


    Regards,



    Kishan Davdra.

  2. #2
    Diane Poremsky's Avatar
    Diane Poremsky is offline Outlook MVP Outlook 2013 64 bit
    Exchange Server account
    Join Date
    Jun 2009
    Location
    Ohio
    Posts
    4,838

    Default Re: Clearing/Deleting all Public Folders through VBA

    Yes, you can use a macro to delete the contacts in public folders. Are you using 1 folder or multiple folders?

  3. #3
    KishanDavdra is offline Junior Member Outlook 2007
    Exchange Server account
    Join Date
    Dec 2012
    Posts
    3

    Default Re: Clearing/Deleting all Public Folders through VBA

    We have four public folders with contacts and will, most likely, need to delete contacts from all of these folders.


    Is there any code which can clear all of these folders in one go?


    Thanks for your help - much appreciated!

  4. #4
    Diane Poremsky's Avatar
    Diane Poremsky is offline Outlook MVP Outlook 2013 64 bit
    Exchange Server account
    Join Date
    Jun 2009
    Location
    Ohio
    Posts
    4,838

    Default Re: Clearing/Deleting all Public Folders through VBA

    If the folders are subfolders - \Customers\A-D\ and \Customers\E-H\ and \Customers\I-K\ etc., you can use an array. If the folders are all over the place, you'll need to repeat a block of code that sets the folder and deletes the contacts for each path.

    Delete items from a public folder - Slipstick Systems

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
  •