Sending email copy (*.msg file) of sent email if subject line contains specific string.

Status
Not open for further replies.

RawlinsCross

Member
Outlook version
Outlook 2013 64 bit
Email Account
Exchange Server 2013
Hi,

A newbie when it comes to Outlook VBA. Was looking to solve a problem. I wish to copy a sent email to a folder (*.msg file) when the subject line contains a specific string. How can this be done?

Cheers,

RC.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
well, you could do this using a rule... but an itemadd macro can watch the sent folder and move/copy messages - and will mark them as read (unlike rules). Sample code is here Mark Sent Items as Read After Copying with a Rule - to move based on a subject line if you aren't using a rule, you'd use and if statements -
if instr(1,lcase(item.subject),"the phrase in lower case") > 0 then
' do whatever
end if
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R Sending a copy of an incoming email to a network folder Outlook VBA and Custom Forms 1
D Sending email from Office 365 alias in Outlook Using Outlook 3
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
HarvMan Hotmail - Sending email is undeliverable Using Outlook 4
D Adding Enterprise Exchange Email Account to Outlook Prevents Sending via Outlook.com Account Using Outlook.com accounts in Outlook 10
B When sending an email, I am showing 2 of my address's Using Outlook 1
M Auto expand Distribution List Before Sending Email Outlook VBA and Custom Forms 1
A Check for words in subject header before sending email Outlook VBA and Custom Forms 4
O Run macro automatically at sending an email Using Outlook 11
H Select Specific Account When Sending Email, Based on Current Folder Outlook VBA and Custom Forms 1
M Help sending email but removing signature via VBA Outlook VBA and Custom Forms 5
C address book "when sending email" bug? Using Outlook 0
C replace subject line generated by converting a word document to PDF and sending it to an email Using Outlook 8
A Sending Emails Through Outlook From Multiple Email Addresses Using Outlook 1
X Delay sending an email until the next working day (public holidays) Outlook VBA and Custom Forms 0
P Outlook 2010 sending safe senders email to junk box Using Outlook 8
Diane Poremsky Warn before sending messages to the wrong email address New Slipstick.com Articles 1
Dilshad VBA editor opens when sending an email Using Outlook 2
Diane Poremsky Sending Email from a Secondary Exchange Mailbox New Slipstick.com Articles 0
Diane Poremsky Sending Email from a Secondary Exchange Mailbox New Slipstick.com Articles 0
rohit I want to Populate Popup box while sending any email with attachment. Outlook VBA and Custom Forms 4
rohit I want to Populate Popup box while sending any email with attachment Using Outlook 1
J Is there a way to disallow sending from certain addresses to specific email addresses? Using Outlook 2
M Sending Excel Charts in the Body of an Email Using Outlook 1
A Application_ItemSend not accessed when sending email outside outlook (i.e. word or send to mail from Using Outlook 7
P Desktop Outlook not sending from alternative email Using Outlook.com accounts in Outlook 6
A After receiving the same email 3 times, Outlook starts sending it to junk Using Outlook 1
R Outlook not responding when sending email Using Outlook 1
T Sending One Email to Trigger Another Being Sent Using an Email within the 1st? Using Outlook 0
I How to prevent exchange email account from sending emails in Outlook Using Outlook 4
X Outlook 2003 not sending all of the new email message Using Outlook 1
O Choosing Sending Email Address from Word Using Outlook 5
P VBA for Dialog Box when sending Email Using Outlook 8
C email sending window won't go away even after email has sent Exchange Server Administration 2
M Outlook 2010 stuck in Work Offline mode; trouble sending email Using Outlook 1
S Changing "from" address when sending email Using Outlook 4
N Prompt for password when sending an email Exchange Server Administration 1
K How to split large email when sending Using Outlook 1
L Sending from a distribution list email Using Outlook 6
P Delayed mass email sending Using Outlook 2
M Links prevent sending email Using Outlook 3
B __Task 'Email removed for privacy - Sending' reported error (0x800CCC0D) : 'Cannot find the e-mail s Using Outlook 3
C Sending a group email that hides all the recipients Using Outlook 1
1 Sending email to self Using Outlook 6
C Having problems with taking items out of one folder and sending them into inbox or sending items back to my e-mail address of Email removed for privac Using Outlook 2
M Outgoing email is not sending, why? Error message 0x800CCCOD Using Outlook 2
S outbox is stuck sending an email. Using Outlook 1
K Sending email in Outlook - being able to choose... Using Outlook 1
N Outlook 2000 creates draft when sending email Using Outlook 5
J TROUBLE SENDING EMAIL FROM OUTLOOK, NO PROBLEM RECIEVING WHEN WORKING FROM OUT OF TOWN Using Outlook 1

Similar threads

Top