Categorize Outgoing Mail

Status
Not open for further replies.

akonn

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Hi,

Using the macro in "ThisOutlookSession" to have my assign category box automatically open when sending new mail. But......It won't work when replying to mail. Any experts have a solution. Outlook 2016.


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeOf Item Is Outlook.MailItem And Len(Item.Categories) = 0 Then
Set Item = Application.ActiveInspector.CurrentItem
Item.ShowCategoriesDialog
End If
End Sub
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
you don't need the following line - ByVal Item As Object, Cancel As Boolean sets the item.
Set Item = Application.ActiveInspector.CurrentItem

i removed the set item line and it worked for both new and replies... but if it still fails, instead of Len(Item.Categories) = 0 , try item.categories =""

also, note that when you set the category before sending, the category may visible to the recipient (if they use outlook) and in the message header: Keywords: Blue category.

if you definitely don't want to share the categories with the recipients, you can either use an itemadd macro that watches the sent folder and brings up the dialog after its sent or see if Sending Categories on Email Messages works for you.
 
Last edited:

akonn

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Thanks. Appears to be working now.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
P Categorize in Calendar not listed under tags in Office 365 (Office 2016) Using Outlook 5
P Automatically Categorize Meetings once they are accepted Outlook VBA and Custom Forms 5
K Maximum Categorize Shortcuts In Outlook 2010? Using Outlook 1
King Mustard Maximum Categorize shortcuts in Outlook 2010? Using Outlook 1
C Auto categorize duplicate subjects Outlook VBA and Custom Forms 11
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
acpete48317 Categorize and move Outlook Email Outlook VBA and Custom Forms 2
Diane Poremsky Categorize Messages using Contact Category Using Outlook 0
J categorize problem outlook 2010 Using Outlook 3
L Categorize new email Using Outlook 1
D Assign categories to outgoing emails Outlook VBA and Custom Forms 0
oliv- How to distinguish whether mail is incoming or outgoing? Outlook VBA and Custom Forms 2
I categories for outgoing email Outlook VBA and Custom Forms 7
L How to use different fonts for outgoing messages for different email accounts Using Outlook 0
A Flag outgoing email messages in Outlook 2010 Outlook VBA and Custom Forms 0
F Outgoing mail from Outlook.com sticks in Drafts folder Using Outlook 0
C Auto Add a PDF to an outgoing Email, based on a rule Using Outlook 2
M To set the storage folder for an outgoing Outlook message Outlook VBA and Custom Forms 8
Diane Poremsky Common Outlook Outgoing Server (SMTP) Errors Using Outlook 0
iwshim Can I add an Unsubscribe link to Outlook outgoing email? Something like this? Using Outlook 1
A Stop Rule (not turn off) that Delays Outgoing Items Outlook VBA and Custom Forms 1
M How best to track OUTGOING referrals? BCM (Business Contact Manager) 2
jw12341243 Outgoing email on deleted account Using Outlook 7
T Outgoing Messages in the Reading Pane Cannot Be Flagged in Outlook 2013 Using Outlook 6
L recipients are not recieving my outgoing emails Using Outlook 1
T Mystery outgoing messages. Using Outlook 0
L How to inbed picture in new outgoing messae Using Outlook 2
G Changing my outgoing mail display name 2010 Using Outlook 1
J Saving Incoming & Outgoing Outlook 2010 Email Locally with IMAP Using Outlook 2
B Add Watermarks to Outlook email outgoing messages Using Outlook 0
R Long delay for outgoing mail Using Outlook 2
L Outgoing Email attachment error "the system cannot find the file specified" Using Outlook 3
C No date outgoing mail Using Outlook 0
M Outlook 2007 - Save outgoing attachments to network drive on sending? Using Outlook 1
M Outlook yahoo POP3 outgoing messages are not reaching destination. Sometime the messages reach the Using Outlook 10
M Flag outgoing mail by word in body Outlook Wishlist 1
S Incoming and Outgoing SMTP server settings Using Outlook 7
G Date Stamp in SUBJECT BOX of Outgoing/Incoming Mail Outlook VBA and Custom Forms 11
N A code that adds category to an outgoing mail message in outlook Outlook VBA and Custom Forms 7
O Exchange Sync period only (e.g. last years mail) Using Outlook 0
F Excel VBA to move mails for outlook 365 on secondary mail account Outlook VBA and Custom Forms 1
M Convertor for Outlook Express Mail Store (.dbx) to Outlook Mail Store (.pst) Using Outlook 0
T vba extract data from msg file as attachment file of mail message Outlook VBA and Custom Forms 1
J E-mail held in Outbox while Minimized Using Outlook 3
G Forward email body to other mail list directly from Exchange server Exchange Server Administration 1
T Outlook creates a copie of every mail I send Using Outlook.com accounts in Outlook 4
N Please advise code received new mail Using Outlook 0
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
A How to stop user form from disapearing once mail window is closed? Outlook VBA and Custom Forms 0
M Outlook, send to > mail recipient - results in plain text email Using Outlook 1

Similar threads

Top