Turn off the message Send message without a subject in Outlook 2010

TipsMake.com - In the tutorial below, we will show you how to turn off the bulletin board 'Do you want to send a message without a subject' of Microsoft Outlook 2010 . First, open the Outlook program, press Alt + F11 to open the Microsoft Visual Basic window:

Turn off the message Send message without a subject in Outlook 2010 Picture 1

Then, double-click on ThisOutlookSession as shown below:

Turn off the message Send message without a subject in Outlook 2010 Picture 2

And enter the following code:

Option Explicit

'================================================= ========================
'Outlook Outlook 2010 2010 to display a no-subject warning message
'(c) Peter Marchert - http://www.outlook-stuff.com
'2010-07-15 Version 1.0.0
'2010-07-19 Version 1.0.1
'================================================= ========================

Private WithEvents colInspectors As Outlook.Inspectors

Private Sub Application_Startup ()


'------------------------------------------------- --------------------
'Set a reference to all forms
'------------------------------------------------- --------------------
Set colInspectors = Outlook.Inspectors


End Sub

Private Sub colInspectors_NewInspector (ByVal Inspector As Inspector)


'------------------------------------------------- --------------------
'Mã này này đang chạy với một dạng (một một thư mục e-mail) sẽ được mở
'------------------------------------------------- --------------------

Dim objItem As Object

'------------------------------------------------- --------------------
'Skip errors
'------------------------------------------------- --------------------
On Error GoTo ExitProc

'------------------------------------------------- --------------------
'Hãy đặt một tham số đến mục nhập mở
'------------------------------------------------- --------------------
Set objItem = Inspector.CurrentItem

'------------------------------------------------- --------------------
'Mục mới mới không có thời gian nhận
'------------------------------------------------- --------------------
If Year (objItem.ReceivedTime) = 4501 Then


'------------------------------------------------- ----------------
'Hãy kiểm tra if các đề này không phải là một tùy chọn empty của một thư mục đã được tạo bởi a
'mẫu với tùy chọn predefined.
'------------------------------------------------- ----------------
If objItem.Subject = "" Then objItem.Subject = ""

End If

ExitProc:


'------------------------------------------------- --------------------
'Hãy xóa tham số đến kiểu và để mục
'------------------------------------------------- --------------------
Set objItem = Nothing
Set Inspector = Nothing


End Sub

Private Sub Application_ItemSend (ByVal Item As Object, Cancel As Boolean)


On Error Resume Next

'------------------------------------------------- --------------------
'If trống không có thì nó sẽ được gỡ bỏ (Outlook®
'sẽ này không nhận ra)
'------------------------------------------------- --------------------
Item.Subject = Trim (Item.Subject)


End Sub

Private Sub Application_Quit ()


'------------------------------------------------- --------------------
'Delete the reference to forms
'------------------------------------------------- --------------------
Set colInspectors = Nothing

End Sub

Save the Session , restart Outlook and from the next time, if you send an email without a Subject - the program will not display the message as before. Note that we have to enable Macro mode in the Trust Center section of Outlook . Good luck!

4 ★ | 1 Vote

May be interested

  • How to send a blank message on WhatsAppHow to send a blank message on WhatsApp
    there is no doubt that whatsapp is the best application for texting and sending multimedia files. the application is available on many platforms and comes with many attractive features. this article will show you how to send a blank message on whatsapp
  • Eliminate self-signed Skype in Outlook and OneDriveEliminate self-signed Skype in Outlook and OneDrive
    microsoft's skydrive cloud service has officially changed its name to onedrive, along with skype integration into outlook. therefore, when you log into outlook.com website, skype users will see that you are in online status and can send messages or calls to you. one annoying thing about this is that you can be bothered while composing a message or checking email in outlook.
  • How to adjust preview message length in OutlookHow to adjust preview message length in Outlook
    if you want to change the content of the preview message in outlook to be more or less, it is very simple. below are instructions for adjusting the length of the preview message in outlook.
  • How to set up SMTP server to send email using Outlook.com addressHow to set up SMTP server to send email using Outlook.com address
    if you want to set up an outlook.com account from another email application, users need to install the smtp server for outlook.com. it provides instructions for understanding mail applications that send mail to outlook.com accounts. the article will show you how to set up smtp server for outlook.com email address
  • 6 ways to ensure email is read6 ways to ensure email is read
    if you receive a lot of emails every day, you may have to spend at least 15 seconds reading a message to decide if it has anything to do with you. on the contrary, imagine that other people read your email in the same way. if they cannot quickly identify the purpose of the message, they may either delete them or leave them in the inbox.
  • How to change the subject and content of received emails in Microsoft OutlookHow to change the subject and content of received emails in Microsoft Outlook
    with microsoft outlook, you can completely change the email subject or even the content of the received email to something you want.
  • How to send 38 file types is prohibited from OutlookHow to send 38 file types is prohibited from Outlook
    microsoft has come up with the idea of ​​restricting certain files, because it negatively affects a small group of users but has a positive effect on others.
  • How to fix Outlook error 0x800CCC0EHow to fix Outlook error 0x800CCC0E
    microsoft outlook is a popular email application used by many people to send and receive messages, organize meetings, and stay in touch with contacts. it's an easy way to communicate comfortably and effectively.
  • Fix access errors for denied PST files after upgrading Windows 10Fix access errors for denied PST files after upgrading Windows 10
    after upgrading windows 10, many users cannot open outlook and receive an error message: cannot start microsoft outlook. không mở được outlook outlook. thiết lập của các gói không thể mở lỗi truy cập file bạn không có quyền cần truy cập đến c: usersrobertdocumentsoutlook filesrobert.pst.
  • How to enable the Undo Send feature on Microsoft Outlook?How to enable the Undo Send feature on Microsoft Outlook?
    if you're a familiar user of gmail, you've probably heard of the undo send feature. this feature allows you to recall emails that you accidentally pressed send email. if you accidentally send an email to someone else, you can use this feature to retrieve emails. on the oulook client, microsoft also integrates this feature. however, the drawback is that this feature is buried under a variety of menus.