Delete Outlook subfolders using vba ?

Status
Not open for further replies.
P

Pjd007

Hi,

I have a secondary mailbox in Outlook 2003 which has a top level folder

(ie. not the inbox) that has a subfolder containing a number of other

subfolders, some these subfolders have another subfolder which I want

to delete.

The folder I want to delete has the same name but is located in

multiple subfolders of the top level folder so I want to be able to

automate deletion of these folders as there is a large number of them.

I hope that's clear !

Can someone recommend a way to do this as it will be very time

consuming to do it manually.

Thanks.

Pjd007
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
This demonstrates how to loop recursively through your folder, maybe that

helps you get started:

http://www.vboffice.net/en/developers/looping-recursively-through-folders-and-subfolders

Best regards

Michael Bauer

Am Wed, 6 May 2009 13:07:08 +0100 schrieb Pjd007:


> Hi,

> I have a secondary mailbox in Outlook 2003 which has a top level folder
> (ie. not the inbox) that has a subfolder containing a number of other
> subfolders, some these subfolders have another subfolder which I want
> to delete.

> The folder I want to delete has the same name but is located in
> multiple subfolders of the top level folder so I want to be able to
> automate deletion of these folders as there is a large number of them.

> I hope that's clear !

> Can someone recommend a way to do this as it will be very time
> consuming to do it manually.

> Thanks.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
N Outlook 2010 "permanently delete all the items and subfolders" not working Using Outlook 3
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
R Outlook 365 update sets delete from server flag Using Outlook 2
Z Outlook 365 delete reminder you can’t make change to contents of this-read only folder Using Outlook 4
J Moved many emails to Outlook external folder, need to delete on Gmail server Using Outlook 14
9 Outlook 2016 How to save an Outlook attachment to a specific folder then delete the email it came from? Using Outlook 1
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
R How to delete Facebook Contacts folder in Outlook 365 Using Outlook 7
C Outlook 2016 cannot delete, email showing in root Exchange Server Administration 5
B Outlook 2016: Can't delete default calendar but I don't use it Using Outlook 7
M Can't Delete iCloud Calendar Notifications From Outlook 2016 Using Outlook 0
makinmyway Bulk Delete Contacts in iOS Outlook App Using Outlook 4
Diane Poremsky Delete an Outlook Group Using Outlook 0
L Outlook 2007 Delete Email Addresses Using Outlook 19
G Outlook calendar entry corrupted. Constant pop up when you open outlook. Unable to delete or remove. Using Outlook 2
Axel_pup Outlook 2013 repositions list after delete Using Outlook 2
C Delete lines in Outlook Outlook VBA and Custom Forms 4
Rupert Dragwater How to delete old rules and create new in Outlook 2013 Using Outlook 12
UncleBill Unable to delete items from gmail IMAP Trash using Outlook 2010 Outlook VBA and Custom Forms 5
G Moving "Delete" button on Outlook for Mac Using Outlook 1
M Can't delete imap email from Outlook 2013 Using Outlook 4
T Cannot Delete a contact in Outlook Shared Contact List Using Outlook 0
L Outlook 2007 Delete and Paste Between Fields Using Outlook 25
L Outlook Contact Field Delete Using Outlook 7
mikolajek Outlook 2013 IMAP actions (message move / delete etc.) significantly delayed Using Outlook 0
F Outlook 2010 unable to delete emails from scanner Using Outlook 1
P Unable to delete custom forms in outlook 2010 Using Outlook 1
E Want Outlook to delete tenative calendar entries when invite is deleted Using Outlook 3
S Outlook 2013 - All rules simply delete the email Using Outlook 1
W Cannot delete Outlook 2010 data file Using Outlook 1
S can't delete duplicate account under Outlook 2007 (Win 7) Using Outlook 16
D Outlook 2010 registry hack - delete emails - Google Apps Using Outlook 0
H Hotmail set not to delete from other accounts, but did. Settings in Outlook? Using Outlook.com accounts in Outlook 0
L How can I delete stationery from Actions, New Mail Message Using in outlook 2007? Using Outlook 6
H How to delete Messages in ascending order - Outlook 2010 Using Outlook 4
S Looking for client-side method (Outlook 2007/Exchange 2007) for users to delete Outlook VBA and Custom Forms 2
R Outlook eating up delete keypress Options Outlook VBA and Custom Forms 6
U Not able to delete Add-in button from multiple Outlook Explorer Outlook VBA and Custom Forms 1
G Automatically delete messages in the synchronization folder Outlook VBA and Custom Forms 1
O How to delete a forum post? Using Outlook 4
T Outlook 2010 Errore run-time -2147417851 (80010105) Metodo delete ContactItem non riuscito Outlook VBA and Custom Forms 0
C Outlook 2016 Unable to delete Gmail IMAP calendar Using Outlook 2
S Outlook 2016 dont delete inbox item Using Outlook 0
O Outlook 2010 Add delete button to the side of the message list Using Outlook 1
S Outlook 2016 A Shortcut to recall and delete and sent message. Using Outlook 1
T Outlook 2010 How to Delete “Orphaned” TO DO? ( Not on Exchange Server) Using Outlook 6
P How did hacker cause link to delete and archive containing email? Using Outlook 6
J To delete the draft email Using Outlook 2
W Recurrence: delete older occurrences / change earliest start time Outlook VBA and Custom Forms 0
A Attachments.Delete Outlook VBA and Custom Forms 3

Similar threads

Top