PC Review


Reply
Thread Tools Rate Thread

Delete folder without moving to "deleted items" folder

 
 
Simon Minder
Guest
Posts: n/a
 
      19th Feb 2010
Dear all,

In Outlook I have VBA code which copies the contact folder stored in our
Public Folders to my contact folder as a new subfolder.

E.g. name of the contact folder in the public folders > PContacts

My contact folder will look like this after the copy process:

Mailbox - Simon Minder
Inbox
Calendar
Contacts
> PContacts

....

I would like to include code which deletes the PContacts folder without
moving the folder to the "deleted items" folder. In addition, I assume I need
to clear the "Clear Offline Items" first, before I can delete this folder
(folder properties > General tab > Clear Offline Items).

Any thoughts, how I could achive the permanent deletion of PContacts folder
from my contacts, before I copy them from my public contacts again?

Best wishes,

Simon Minder
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      19th Feb 2010
There is no "hard delete" option when deleting something with the Outlook
object model. You would have to use a different, lower level API to bypass
the Deleted Items folder. You can use CDO 1.21 (optional installation or
download), Redemption (www.dimastr.com/redemption) or Extended MAPI (C++ or
Delphi code only) for something like that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Simon Minder" <Simon (E-Mail Removed)> wrote in message
news:CE859D0E-6A20-407E-883F-(E-Mail Removed)...
> Dear all,
>
> In Outlook I have VBA code which copies the contact folder stored in our
> Public Folders to my contact folder as a new subfolder.
>
> E.g. name of the contact folder in the public folders > PContacts
>
> My contact folder will look like this after the copy process:
>
> Mailbox - Simon Minder
> Inbox
> Calendar
> Contacts
> > PContacts

> ...
>
> I would like to include code which deletes the PContacts folder without
> moving the folder to the "deleted items" folder. In addition, I assume I
> need
> to clear the "Clear Offline Items" first, before I can delete this folder
> (folder properties > General tab > Clear Offline Items).
>
> Any thoughts, how I could achive the permanent deletion of PContacts
> folder
> from my contacts, before I copy them from my public contacts again?
>
> Best wishes,
>
> Simon Minder


 
Reply With Quote
Reply

« task code | endkey »
Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving messages to "Deleted Items" folder Gabriel Microsoft Outlook Program Addins 2 23rd Apr 2009 08:46 PM
How to Delete Folders from Outlook 2007 "Deleted Items" Folder. abhi4u1947@gmail.com Microsoft Outlook VBA Programming 0 27th Dec 2007 02:38 PM
Moving deleted IMAP messages to "Deleted Items Folder" =?Utf-8?B?U3RlcGhlbg==?= Microsoft Outlook Discussion 0 30th Oct 2007 06:36 AM
deleted items are being moved to my "Deleted items" folder from the "Delegated Inbox folder" veeruver@gmail.com Microsoft Outlook Discussion 0 21st Nov 2006 01:55 AM
delete without moving to "deleted items" folder greg Microsoft Outlook VBA Programming 1 13th Aug 2004 09:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 PM.