Remove Subject Residual

Status
Not open for further replies.

Bamerand

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Dear all,

I need some piece of advice. I am using the following code to strip message subjects of such words, as example {EXTERNAL}", "HA:", "[Ext]", "[EXTERNAL] and so on. Location is in ThisSession of Outlook.

I use the rule such as "with specific words in the subject"and "run a script".

I use Office 2013, Exchange Server. The account is set up on two computers, one PC is working station within active directory / domain. The 2nd computer is a laptop with the same accout, out of active directory / domain.

The rule and the script works fine, the only issue, from time to time it prompts an error and stop executing teh script. This happens both either on PC or laptop. Screenshots are attached.

Sub RemoveSubjectResidual(oItem As Outlook.MailItem)

On Error GoTo ErrHandler
Dim arr As Variant, i As Long
arr = Array("FW:", "Re:", "{EXTERNAL}", "HA:", "[Ext]", "[EXTERNAL]")
For i = 0 To UBound(arr)
oItem.Subject = Replace(oItem.Subject, arr(i), "", , , vbTextCompare)
Next

oItem.Subject = Trim(oItem.Subject)
oItem.Save

Exit Sub
ErrHandler:
MsgBox "Oops, an error has occured." & vbCrLf & vbCrLf & "Error Code : " & Err.Number & " , " & Err.Description
End Sub

Screenshot 01.png


Screenshot 02.png
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
This is with an Exchange account? I know imap accounts can load slow and trigger this error message on start up.

Is there any rhymn or reason to what triggers it - like only at startup, only if you received a lot of mail at once etc.
 

Bamerand

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Hello Diana,

Yes, this is Exchange account. Until now I could not identify what triggers it, in certain times the error message pops-up when Outlook was already running and there incoming emails when both PC Outlook and laptop Outlook are running at the same time.

Before I used to get this type of error more often, maybe every day or every other day (both PC Outlook and laptop Outlook are running at the same time) and I used to have different rule setting. It was "on this computer only" and the rule "with specific words in the subject" was unchecked.

What I intend to do now (until next week), I will use only PC Outlook and shutdown laptop Outlook until Thursday next week, maybe two sessions of Outlook cause conflict??? Although two sessions of Outlook should not, as I launch up to three sessions of Outlook on PC with no conflict.
 

Bamerand

Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server
Dear all,

Looks like there is another reason, it tripped today again, attached is screenshot. Only PC was running, laptop was off. I cannot understand what tripped it, although there was an incoming reading confirmation and I have opened reminder window with pending tasks. Could either of these be a cause for trigger of the above mentioned?

Sreenshot.png
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
P [SOLVED] Auto remove [EXTERNAL] from subject Using Outlook 6
D Remove text in subject using VBA Outlook VBA and Custom Forms 4
R Chancing / remove “ something ” in the subject, online archive Outlook VBA and Custom Forms 8
F VB Script, remove text from subject line when forwarding Using Outlook 22
T Outlook 2016 remove envelope icon for certain folders Using Outlook 6
M In Outlook Calendar remove the buttons: 'Today' and '<' (Back a day) and '>' (Forward a day) that are below the Ribbon and above the calendar display. Using Outlook 0
P Add, remove, & reorder folder pane Using Outlook 6
W Remove specific contacts from contact list Outlook VBA and Custom Forms 3
T Cannot remove needless PST Using Outlook 1
Healy Consultants Macro to remove inside organization distribution list email address when reply to all recepients Outlook VBA and Custom Forms 0
S Unable to remove rule outlook 2010 Using Outlook 0
N How to remove signature formatting from Text in Word (accidentally taken from Outlook) Using Outlook 0
P how to remove unwanted PST file default categories assigned to many calendar entries Using Outlook 7
J Remove text to Clean Up Outlook VBA and Custom Forms 1
B Automatically Forward Emails and Remove/Replace All or Part of Body Outlook VBA and Custom Forms 8
T Remove Old Location From Tasks Pane Using Outlook 1
A remove or turn off outlook.com contact folder from outlook 2016 Using Outlook 4
Morgan Fowler Remove Signature Using Outlook 1
M How to remove a list of specific contacts from Outlook Using Outlook 18
R New Links on Navigation Pane, How to Remove? Using Outlook 1
M VBA to remove deferred delivery on a MeetingItem Outlook VBA and Custom Forms 2
J Remove extra line above signature in reply Outlook VBA and Custom Forms 5
Diane Poremsky How to Remove RSS Support from Outlook New Slipstick.com Articles 0
Diane Poremsky Remove Attachments From Messages New Slipstick.com Articles 0
Diane Poremsky Remove Office 2013 Update Banner New Slipstick.com Articles 0
O Remove duplicate mail items Outlook VBA and Custom Forms 6
Diane Poremsky Remove a password from an Outlook *.pst File New Slipstick.com Articles 3
G VBA/Macro to remove page colour when replying or forwarding email Outlook VBA and Custom Forms 2
L Fake reminder apperaring (not in calendar) - how to remove? Using Outlook 5
J Your IMAP server wants to alert you to the following: cannot remove system folder Using Outlook 3
A Auto Insert of filename when selecting 'Remove Attachment' Using Outlook 1
C how to remove icons on right hand side outlook 2013 Using Outlook 2
K Remove Manage APPS button for users Exchange Server Administration 1
P Remove name and parenthses from email Using Outlook 1
G Outlook calendar entry corrupted. Constant pop up when you open outlook. Unable to delete or remove. Using Outlook 2
Diane Poremsky How to remove the primary account from Outlook 2010/2013 New Slipstick.com Articles 0
Diane Poremsky Remove an Address from Reply All New Slipstick.com Articles 0
Diane Poremsky Remove Outlook apps from Outlook New Slipstick.com Articles 0
L An () has been inserted after the address in an address box; how do I remove them. Using Outlook 1
S How to remove forms from Organizational forms library Outlook VBA and Custom Forms 2
2 Task has a strike through but is not complete - how to remove? Using Outlook 1
A Is it possible to remove the word Categories: from task list views? Using Outlook 2
W URGENT Cancel and remove imported pop3 mails Using Outlook 6
Emerogork How do I remove "Delete Folder" from the right-click menu? Using Outlook 1
T How to remove annoying Big Blue Type at beginning of my messages Using Outlook 2
H Cannot remove unwanted fields from form Outlook VBA and Custom Forms 9
T How to remove "automatically delete messages form this sender"? Using Outlook 1
M How to remove duplicate history items BCM (Business Contact Manager) 7
D Isn't there an easy way to remove duplicate contacts in outlook? Using Outlook 1
Britonius Exchange Powershell to Remove Reviewer access from all Folders in a mailbox? Using Outlook 3
Similar threads


















































Top