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 New Slipstick.com Articles 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 New Slipstick.com Articles 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
S Outlook VBA How to adapt this code for using in a different Mail Inbox Outlook VBA and Custom Forms 0
E Having some trouble with a run-a-script rule (moving mail based on file type) Outlook VBA and Custom Forms 5
S Outlook email to configure setup for each mail Outlook VBA and Custom Forms 1
L Correct E-Mail Pulling Wrong Mail Using Outlook 5
S Outlook mail adressing stops after first match in GAL Using Outlook 0
P Outlook 2013 All imported Mail Rules in error when imported into new profile Using Outlook 5
S Outlook Macro to send auto acknowledge mail only to new mails received to a specific shared inbox Outlook VBA and Custom Forms 0
S Outlook Macro to move reply mail based on the key word in the subjectline Outlook VBA and Custom Forms 0
MrMayor SENT mail not reloading to top?? Using Outlook 4
Terry Sullivan Sender Field Displays My E-Mail Address, Not My Name Using Outlook 1
ThinkToday Calculate reply time of outlook mail Using Outlook 1

Similar threads

Top