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?
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
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.
 

JorgeDario

New Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
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
pwatts2 Restrict some lists to only BCC send option Outlook Wishlist 2
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
Abraham Outlook 2013 Lost my folders when moving from PST to IMAP Using Outlook 0
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
A Moving Public Folders to New Database Exchange Server Administration 3
Paul Hobbs Automatically accept "Empty Folders" prompt Outlook VBA and Custom Forms 6
R Problem moving file “Email folders.pst” to new PC Using Outlook 5
D How To Combine Share Task Folders in just one Folder Using Outlook 0
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
witzker print-list-of-outlook-folders with sort posibility Outlook VBA and Custom Forms 7
vodkasoda Hiding empty Folders Outlook VBA and Custom Forms 0
C Not sync folders not found after MS Outlook 365 update Using Outlook 1
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 1
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 2
C Outlook with Office365 - search across account, by date rate, in multiple folders - how? Using Outlook 2

Similar threads

Top