How to restrict the creation of new folders?

Status
Not open for further replies.

JorgeDario

New Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Hi, How to restrict the creation of new folders with vba?
 
That could be possible with the FolderContextMenuDisplay event. It's triggered when you right click on a folder. Find the Add button in its Commandbar, subscribe to that button's events, and cancel its Click event.
 
Thank you!, now I know how to do, but now I need to restrict access to a certain folder with vba

Aqui esta el ejemplo:

Public WithEvents myOlFolders As Outlook.Folders

Public Sub Application_Startup()
Set myOlFolders = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders
End Sub

Private Sub myOlFolders_FolderAdd(ByVal Folder As Outlook.MAPIFolder)
If InStr(1, Trim(UCase(Folder.FolderPath)), Trim(UCase("Solutions")), vbTextCompare) <> 0 Then
MsgBox "Can't Create Folder in Solutions Folder"
Folder.Delete
End If
End Sub
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
K Disabling import/export button to restrict PST creation Using Outlook 3
R How to restrict GWSMO sync to Outlook Send/Receive cycles Using Outlook 0
B oContacts.Items.Restrict Misses Some Contacts Outlook VBA and Custom Forms 3
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
L Restrict accepted appts to specific calendar Using Outlook 2
oliv- .RESTRICT returning birthdays regardless of the filtering date Outlook VBA and Custom Forms 8
M Using .Restrict with a UserProperty in an Exchange folder Outlook VBA and Custom Forms 4
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
S Restrict method question on email. What am I doing wrong? Outlook VBA and Custom Forms 2
M Restrict throwing 'Condition is not valid' error Outlook VBA and Custom Forms 5
M Restrict Appointments by EntryID not working Outlook VBA and Custom Forms 1
R New Account creation Wizzard Using Outlook 1
M Email notification on creation of an appointment shared calendar? Outlook VBA and Custom Forms 3
K Different kind of issue related to creation of archive after one has been deleted Exchange Server Administration 1
wallisellener database creation failed BCM (Business Contact Manager) 0
G Email form/template creation Using Outlook 1
T Outlook 2003 free busy vfb file creation problem Using Outlook 12
M Send email on task creation? Using Outlook 2
S Macro to speed email creation Outlook VBA and Custom Forms 4
B Re: Outlook Forms E-mail Creation Sending Blank Fields Outlook VBA and Custom Forms 1
T BCM 2007: Accounts creation or opening fails BCM (Business Contact Manager) 1
M Template creation Outlook VBA and Custom Forms 1
D Macro creation for Outlook insert subject Outlook VBA and Custom Forms 1
R One Click business contact record creation - From an E Mail? BCM (Business Contact Manager) 1
R one button business contact creation BCM (Business Contact Manager) 1
A Outlook Forms Creation Outlook VBA and Custom Forms 3
Q Creation new message in Inbox folder Outlook VBA and Custom Forms 3
U Outlook Addin Creation using Visual Studio 2008 Outlook VBA and Custom Forms 1
G Search Folders and Jump to Folder Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
Witzker Outlook 2019 Macro to seach in all contact Folders for marked Email Adress Outlook VBA and Custom Forms 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 2
C Trying to move messages between imap accounts/folders Using Outlook 5
icacream Outlook 2021 Win 10 - Nothing goes in my Drafts or Sent items folders ! Using Outlook 1
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
CWM330 Saving Data: Don't check certain folders Using Outlook 2
J Unable to delete folders in Outlook 2019 / Windows Using Outlook 0
D This folder up to date vs all folders up to date Using Outlook 1
e_a_g_l_e_p_i Adjusting font size in folders Using Outlook 1
Abraham Outlook 2013 Lost my folders when moving from PST to IMAP Using Outlook 11
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
O Cannot expand the folder. The set of folders cannot be opened. You do not have permission to log on. Using Outlook 1
F VBA to move email from Non Default folder to Sub folders as per details given in excel file Outlook VBA and Custom Forms 11
R Moved 6 months worth (approx 1500 emails) lost from moving from TPG inbox to Icloud inbox (folders) Using Outlook 3
C What folders are needed when reinstalling Outlook 2010 Using Outlook 0
P Color Code or highlight folders in Outlook 2016 Using Outlook 2

Similar threads

Back
Top