Outlook/Google Configuration

Status
Not open for further replies.
Here is what I have. I have two VBA macros. One is the macro to run the rules. The second, and I assume it's triggered on a reminder, checks the notification for the name "File Email" then runs the other macro. I think created a Task named "File Email" and set it as reoccurring daily. I set it to have a reminder at 8:00pm. I also added a rule that finds an email subject of "Email Filter Test" and does a pop up. I then generated an email with that subject and put it in my Inbox.

At 8:00, I got a pop-up saying that the rules had run, though that might have actually been generated from the macro. I also got a reminder saying the task was 3 hours overdue (I created it around 5:00, but don't see a way to put the time in the task). This all appears to be working.

Is this the cleanest way to do this?

However, I'd like this to all be as transparent as possible. I don't want any reminders popping up. Any way to make them go away?
 
You can't prevent the reminder popping up, you can set the macro to mark the task complete so it goes away and you might be able to close the reminder window using vba. Without seeing the vba, cant comment on the popup but if its a msgbox that says its finished you can remove the code from the macro once you are sure it works.
 
Diane -

The scheduling task has been a bit problematic. I made it a daily reoccurring task, but once the reminder fires, I wasn't getting another reminder the next day. I changed it to a "schedule the next day after complete" type pattern and that seems to work, but I have to go in and complete the task to get it rescheduled (this could have been the issue with the daily task, too). So, I did some searching on how to automatically complete the task, but have not found anything useful. I'd also like to close the reminder, if possible. Here is what that macro does, so far, with comments for the additional logic.

Private Sub Application_Reminder(ByVal Item As Object)

If Item.MessageClass <> "IPM.Task" Then
Exit Sub

End If

If Item.Subject = "File Email" Then
RunAllInboxRules
' Complete this task
' Close reminder popup

End If

End Sub

Otherwise, the task is only getting run every few days when I remember to complete the task so that the next one gets scheduled.
 
Add

Item.Complete = True

Item.Save

before the End If.

If a lot of tasks fire and it's busy running the macro/rules, it might not mark the task complete though. I tested it with tasks that opens a web page and 1 or 2 tasks worked fine - 3 and 4 were iffy with most tasks marked complete, 5 firing at once and it did not mark any complete. your code might be better - mine has a wait built in while IE opens and the quick succession of reminders causes outlook to lose track of the first items.
 
I added the two lines, and will see how it behaves tomorrow. There is only one task, so hopefully it isn't a problem. Should I possibly move those two lines up, and run RunAllInboxRules last?
 
One task should be fine. You could try putting that first. Now that I think about it, my logic was faulty when i decided it needed to be last. The reminder is already triggered, so it doesn't matter when we mark it complete.
 
I think I have this running fairly well. I still have some work to do on the timing. The archive does not run at the same time every day so it's difficult to tell when to schedule the rules to run. Also, if the computer is off when the task notice fires, I get a pop up saying I missed the event, and I have to reschedule it to get the rules to run.

Just a thought - the archive can't kick off the rules, but could the rules script kick off the archive?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
O Any 3rd party tool that sync (mirror) from Outlook Contacts to Google Contacts? Using Outlook 4
O Any 3rd party tool that sync (mirror) from Outlook Calendar to Google Calendar? Using Outlook 5
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
D Wishlist How to use 'app password' in Outlook 2003 after Google pulled plug on "less secure apps" Using Outlook 2
Commodore Are newer versions of Outlook still "less secure" to Google? Using Outlook 22
A Any way to make Outlook Calendar invitations look right to Gmail/Google Calendar users? Using Outlook 3
C WARNING - DO NOT USE AN OUTLOOK.COM ADDRESS FOR GOOGLE ACCOUNT RECOVERY EMAIL Using Outlook 10
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
GregS Outlook 365 blocked by Google popup Using Outlook 2
O Synchronising contacts Outlook 365 with Google v.v. Using Outlook 4
B How to sync Outlook, iphone and Google calendars and contacts? Using Outlook 4
G Outlook VBA and Google Calendar ("Events") Outlook VBA and Custom Forms 1
Horsepower Google says Outlook 2016 is not a secure app Using Outlook 4
M Google Apps Mail *SENT* from iPhone doesn't download to Outlook via POP3 Using Outlook 1
B synching outlook 2010 with google on android phone Using Outlook 6
A Outlook 2013 IMAP using Google Mail App not syching Sent Mail Using Outlook 3
C Setting up Outlook 10 on Widows 8 using Google Server Using Outlook 3
A Recommend add-on or utility enabling quick Google search within Outlook Using Outlook 7
M How do I change the default map from Bing to Google in Outlook 2003? Using Outlook 23
J Outlook Connector equivalent for Google Mail? Using Outlook.com accounts in Outlook 2
D Outlook 2010 registry hack - delete emails - Google Apps Using Outlook 0
R Outlook and google calendar stuck if I close outlook Using Outlook 1
C Sync Outlook Calendar and Google Calendar Using Outlook 1
F Google Desktop fails to index Outlook 2010 Using Outlook 3
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
P My Feedback to Microsoft and their response; also New Outlook roadmap Using Outlook 0
A New Outlook - Cannot drag IMAP emails to Task List in MyDay Using Outlook 1
L Android Outlook Doesn't Update PC Notification Changes Using Outlook 0
A How to open Excel file saved in Outlook folder? Outlook VBA and Custom Forms 4
D.Moore Outlook desktop client suggested searches question Using Outlook 18
Y Outlook 2016 (64-bit) Copy Local Cal. Events to Another Cal. with Modified Reminder time Using Outlook 2
T Outlook 2019 While connecting an IMAP account in "classic" Outlook 2024 I caused a massive duplication of emails on the server (death loop) Using Outlook 5
D Cannot logon to Outlook.com, or outlook on Mac, outlook not updating on ipad, iphone Using Outlook 1
J unable to get my new install of Outlook to display mailboxes in the single-line format. Using Outlook 1
D Legacy Microsoft Outlook for Mac Support will end in Oct 2025 Using Outlook 5
C Nasty Bug Lurking In Outlook For Years. The Trigger. Any Fix Or Workaround? Using Outlook 11
R Auto clicking Hyperlink in outlook Outlook VBA and Custom Forms 7
ughlook Open multiple contacts in NEW Outlook? Using Outlook 3
G Outlook translation feature is off Using Outlook 2
J Outlook 2010 does not let me put any account Using Outlook.com accounts in Outlook 3
P 3 of 5 PST files don't install from d:\outlook but only from D:\ Using Outlook 7
HarvMan January Windows 10 preview update force installs new Outlook Using Outlook 1
L Outlook 2010 - new installation on Windows 11 - aplzod32.dll is not a valid Add-in Using Outlook 12
J Outlook troubleshooting/logging - option grayed out Using Outlook 2
B Arrows missing from Outlook emails vertical scrollbar Using Outlook 0
G Outlook 2021 (New) doesn't respect default browser Using Outlook 9
B Outlook or iPhone turning tabs into spaces in Outlook Notes Using Outlook 1
P newly installed Office 365 includes OLD Outlook Using Outlook 6
R Outlook ribbon menu default? Using Outlook 7

Similar threads

Back
Top