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
 
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
D Delete Outlook emails from MS server Using Outlook 12
K How can I delete an e-mail from Outlook Using Outlook 1
J Unable to delete folders in Outlook 2019 / Windows Using Outlook 0
Horsepower Cannot delete gmail in iPhone Outlook outbox Using Outlook 1
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 1
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
A Outlook 365 Delete entries in title field, address book Using Outlook 0
D Delete selected text in outgoing email body Outlook VBA and Custom Forms 0
E Outlook 365 Save Selected Email Message as .msg File - oMail.Delete not working when SEARCH Outlook VBA and Custom Forms 0
G Automatically delete email when a condition is met Outlook VBA and Custom Forms 1
D Outlook 2021 Using vba code to delete all my spamfolders not only the default one. Outlook VBA and Custom Forms 0
M Shift Delete doesn't delete email from server Using Outlook 3
J Quick steps delete original email and move reply/sent email to folder Using Outlook 2
N How to add or delete items to Move dropdown Menu Using Outlook 0

Similar threads

Back
Top