Hide/Disable the X button on BrowseForFolder Dialog

JohanKotze

Senior Member
OS Version(s)
  1. Windows
Outlook version
Outlook 2019 64-bit
Email Account
IMAP
Operating system::    Window 10 Pro
Outlook version:     Outlook 2021
Email type or host:    IMAP

Is there away in Outlook VBA to hide or disabled the x close button the right top of the BrowseFordFolder' Sometime I accidentally click it if the email is concern. Then I need to restart Outlook to give the VBA a kick start
 
No... but I have a macro that will kick start the auto start macro (or you can open VBA editor and click run).

Code:
Sub RunStart()
 Call Application_Startup
 MsgBox "App Start Started"
End Sub

I have it on a button on the ribbon and run it if think the auto runs aren't working.
 
How do I get this code in a button on the ribbon,
 
Add it at the end of thisoutlooksession then customize the ribbon to add it to the ribbon (or qat).

It will be under project1.thisoutlooksession. After you add it, click modify to change the name and icon to something better looking. :)

1727125624741.png
 
Similar threads
Thread starter Title Forum Replies Date
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J Hide/disable "Groups", "Shared Calendars" Using Outlook 2
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
L Hide Selected Email Address from Address Book Using Outlook 5
D hide messege issue Using Outlook 1
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
K BCM hide subfolders BCM (Business Contact Manager) 1
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
S Hide Timestamp from deleyed message Using Outlook 4
I Outlook 2010 - Remove or Hide Suggested Contact Folders Using Outlook 1
K Hide Default Folders in PST Using Outlook 2
F Hide calendars from shared mailboxes Using Outlook 2
J Ho do I hide the week number on the Calendar Printing Assistant template Using Outlook 4
S Hide Folders in Outlook 2007 (IMAP) Using Outlook 5
C How do I hide distribution list from global contacts for certain users? Exchange Server Administration 1
T Is it possible to hide a mailbox but still send on the behalf of. Exchange Server Administration 1
H Outlook 2007 - hide completed tasks from Outlook Today -Solution Using Outlook 2
N Appointment Body on Custom Page 2- Hide Default Page Outlook VBA and Custom Forms 2
N How to hide pstStore Outlook VBA and Custom Forms 4
H Hide attachment... Outlook VBA and Custom Forms 3
S hide details of appointments in calendar Using Outlook 8
M hide outlook to system tray Outlook VBA and Custom Forms 1
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
C Re: Hide BCM toolbar BCM (Business Contact Manager) 1
T How do I hide/unhide folders in outlook inbox? BCM (Business Contact Manager) 1
Y Tone Detector - How to disable Using Outlook 0
J disable Alt+S shortcut Using Outlook 21
G To enable/disable Allow New Time proposals Outlook VBA and Custom Forms 1
Y Disable Microsoft Outlook Test Message Using Outlook 4
J How do you disable address search box when typing @ in body of email? Using Outlook 0
L Is there a way to completely disable the "archive" box? Using Outlook 1
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
U Disable "Always ask before opening" Dialog Using Outlook 3
J How do I disable advertising in Outlook 2019? Using Outlook 15
GregS Outlook 2016 Can I disable the Outlook Outbox? Using Outlook 2
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
N Disable Auto Read Receipts sent after using Advanced Find Using Outlook 4
N How to disable shortcuts for Pilcrow in Outlook Using Outlook 0
M Making Subject field writable (disable Read Only) Outlook VBA and Custom Forms 2
P Disable Spam Notifications & Sounds Using Outlook 3
O Outlook Web Access - how to disable spam filter Using Outlook 6
Diane Poremsky Disable Protected View for Outlook Attachments Using Outlook 0
E Outlook 2010 disable date auto-complete Using Outlook 2
Diane Poremsky Disable Outlook Add-ins (Apps) Using Outlook 0
J Using VBA to disable alerts / warnings Using Outlook 2

Similar threads

Back
Top