Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2016, 07:54 AM
Tagliaboo Tagliaboo is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2013
Novice
Automatic Flag Rule
 
Join Date: Dec 2014
Posts: 9
Tagliaboo is on a distinguished road
Cool Automatic Flag Rule

Is it possible to set a rule to flag emails that are received on a day of the week?



I need to review and respond to all emails that come in on Friday and I want to ensure none slip through the cracks

Thanks
Reply With Quote
  #2  
Old 11-18-2016, 09:34 PM
gmayor's Avatar
gmayor gmayor is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You can do it with a script associated with a rule to process incoming messages. e.g. the FlagFriday macro below. I have included a macro that will enable you to test on a message in your inbox. Messages sent on Friday are flagged.

Because of Outlook security, you will almost certainly need to self certify the vba code -
http://www.gmayor.com/create_and_employ_a_digital_cert.htm

Code:
Sub TestFlag()
Dim olMsg As MailItem
    On Error Resume Next
    Set olMsg = ActiveExplorer.Selection.Item(1)
    MsgBox Weekday(olMsg.SentOn)
    FlagFriday olMsg
lbl_Exit:
    Exit Sub
End Sub

Sub FlagFriday(Item As Outlook.MailItem)
    If Weekday(Item.SentOn) = 6 Then
        Item.MarkAsTask olMarkToday
        Item.Save
    End If
lbl_Exit:
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 11-22-2016, 06:15 AM
Tagliaboo Tagliaboo is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2013
Novice
Automatic Flag Rule
 
Join Date: Dec 2014
Posts: 9
Tagliaboo is on a distinguished road
Default Newbie

I am new to scripts in outlook. If possible can you provide simple step by step instructions or a place on the web with easy to follow steps
Reply With Quote
  #4  
Old 11-22-2016, 07:20 AM
gmayor's Avatar
gmayor gmayor is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The process is essentially similar to http://www.gmayor.com/installing_macro.htm
Add a module to the VBA editor (ALT+F11 - Insert > Module) and paste the code above in to it.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #5  
Old 11-22-2016, 07:51 AM
Tagliaboo Tagliaboo is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2013
Novice
Automatic Flag Rule
 
Join Date: Dec 2014
Posts: 9
Tagliaboo is on a distinguished road
Default Macro

I need to create a macro and paste the entire text you posted or just a section?
Reply With Quote
  #6  
Old 11-22-2016, 09:53 PM
gmayor's Avatar
gmayor gmayor is offline Automatic Flag Rule Windows 10 Automatic Flag Rule Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The macro is the text in the code panel. Actually two macros. You don't have to create anything. Just copy and paste into a new module.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
flag, rule, settings

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rule to forward email using rule to me@onenote.com anony1 OneNote 2 02-04-2023 02:39 PM
flag identical words? 21rouge Word 1 09-21-2013 08:42 AM
Automatic Flag Rule Follow-up Flag Behavior curtis.walker@sgmc.org Outlook 1 03-06-2013 08:52 AM
How Can I Flag Duplicate Date Entries? tatihulot Excel 5 11-16-2012 12:19 AM
Task closing when flag is cleared pro3carp3 Outlook 1 12-05-2011 10:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft