Making custom Outlook 2007 folders emptiable like "Deleted Items"

Status
Not open for further replies.
J

JoeBrind17

I want to create a "MyDumpster" subfolder under "Inbox" and have it offer the

"Empty 'MyDumpster' Folder" option in the context menu appearing when I

right-click it in the Navigation pane. I do not want to write a "Delete

Folder" macro and bind it to a new menu button. Instead, I want the new

folder to possess something akin to an "Emptiable" property similarly to the

"Deleted Items" folder. How do I do this, please?
 
K

Ken Slovak - [MVP - Outlook]

Use the Application.FolderContextMenuDisplay() event. You will need to add a

CommandBarButton object to the CommandBar passed to you in that event

handler, so you will need to add a new menu entry when the event fires.

Your code then will have to iterate the folder's contents and delete

everything in the folder, then it will need to delete everything moved from

the folder to the Deleted Items folder.

There is no "emptiable" property as you seem to think.

"JoeBrind17" <JoeBrind17> wrote in message

news:90960327-4E64-4110-A22B-539890168DBF@microsoft.com...
> I want to create a "MyDumpster" subfolder under "Inbox" and have it offer
> the
> "Empty 'MyDumpster' Folder" option in the context menu appearing when I
> right-click it in the Navigation pane. I do not want to write a "Delete
> Folder" macro and bind it to a new menu button. Instead, I want the new
> folder to possess something akin to an "Emptiable" property similarly to
> the
> "Deleted Items" folder. How do I do this, please?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Making field editable in custom form Outlook VBA and Custom Forms 2
V Making a Date field mandatory in outlook form Outlook VBA and Custom Forms 2
A Outlook 2019 having issues with 'people search' and not making suggestions in email To: etc Using Outlook 12
P Making iCloud the default calendar for Outlook 2016 Using Outlook 3
CWM030 Thinking about making the plunge. Exchange Server Administration 6
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2
L Making rule to move email to folder from one O365 domain Using Outlook 1
Michael R Belleville Making an Attachment Name the Message Subject Using Outlook 2
Pierce007 Maps/location in making an appointment Using Outlook 2
R Making Outlook default client in share charm Using Outlook 4
D No Follow up when making new form Outlook VBA and Custom Forms 2
C Safeguards against accidental deletion / making inactive. BCM (Business Contact Manager) 1
Z Making Outlook Default folders to local/personal instead of Hotmail Using Outlook 8
T Need help making RULE to prepend email SUBJECT Using Outlook 3
T Outlook 2003 - Making a distribution list from a contact folder Outlook VBA and Custom Forms 1
S Outlook 2016 Arrange tasks by date, additional custom sorting, but still use friendly terms like Today, Tomorrow, This week? Using Outlook 1
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
S Custom Field Cannot Be Displayed In Views Outlook VBA and Custom Forms 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
K UDF with formula not showing on Calendar custom view. Outlook VBA and Custom Forms 0
S Create a clickable custom column field Outlook VBA and Custom Forms 0
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
S Reference Custom Fields with VBA Outlook VBA and Custom Forms 2
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
A Custom VBA to sort emails into folders Outlook VBA and Custom Forms 0
Victor_50 Outlook 2013 Custom Contact Form starts with "E-mail 2" Outlook VBA and Custom Forms 2
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0
C Reading Pane for Custom Form Outlook VBA and Custom Forms 2
M Custom Calendar Print Suggestions? Using Outlook 0
K Custom Category Colors Using Outlook 2
N Custom Form Controls Not Visible To Recipient Outlook VBA and Custom Forms 3
E To convert imported data to custom fields in Task list Outlook VBA and Custom Forms 1
Randy Redekopp How To Merge Contact Info to Email Custom Form Template Using Outlook 2
D Problem with custom form including _DocSiteControl1 Outlook VBA and Custom Forms 0
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
H Custom Signature Not Displayed When Account Selected Outlook VBA and Custom Forms 10
E Custom formula for columns Using Outlook 3
W Message class changes of a custom form changes to the default form Using Outlook 2
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
Andrew Quirl Custom form to route requests based on input criteria Outlook VBA and Custom Forms 1
D Using a VBA Custom Form to Send Reoccurring Email Upon Task Completion Outlook VBA and Custom Forms 4

Similar threads

Top