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?
 
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
C Why does Outlook (desktop) 365 for Windows keep making me input my passwords? Using Outlook 12
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
G Apply Custom Contacts form to all existing Contacts Outlook VBA and Custom Forms 1
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
G Outlook 2021 Add Picture to Custom Contact Form Outlook VBA and Custom Forms 2
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
AndyZ Contact Custom Form Tiny Text Outlook VBA and Custom Forms 3
A How to reduce size of custom contact form? Outlook VBA and Custom Forms 3
S Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0
S Adding Custom Forms Outlook VBA and Custom Forms 4
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
B Outlook 2019 Custom Email form - Edit default email form Outlook VBA and Custom Forms 6
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
M copy field value to custom field Outlook VBA and Custom Forms 0
J Does the .fdm contain my custom form? How to make ol use it? - ol2007 Outlook VBA and Custom Forms 4
J ol2021 custom form not displaying pics Outlook VBA and Custom Forms 37
N "Perform a Custom Action" Outlook VBA and Custom Forms 0
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Update new custom field Outlook VBA and Custom Forms 5
D Anyone tell me where custom view settings are stored? Outlook VBA and Custom Forms 9
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

Similar threads

Back
Top