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
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
T Creating a second email account on an Outlook client Using Outlook 0
Daviddavidsonz How to Schedule Emails in Microsoft Outlook Using Outlook 0
S Rule not running in Outlook Classic unless... Using Outlook 9
J column with actual email address in Outlook Classic Using Outlook 2
S Not receving all email since converting from Outlook 2007 to Outlook Classic Using Outlook 3
Rupert Dragwater Outlook 365 taking too long to synchronize each time email is being checked Using Outlook 17
Hornblower409 Outlook VBA Code Example - Unified inbox in Outlook Classic Outlook VBA and Custom Forms 5
J Need replacement for iTunes to locally (USB) sync. iPhone 17 to Classic Outlook 2024 Using Outlook 4
Thomas Fast Best way to manage incoming customer emails automatically in Outlook? Using Outlook 1
I Outlook 2024 Windows 11 Gmail - sudden log in problems Using Outlook 13
S Outlook Classic on 2024 Using Outlook 10
L Fresh Install of Windows 11, saved previous image, how to retrieve Outlook Contacts Using Outlook 10
C Can't Use Custom Contact form in Outlook Classic since early January 2026 Outlook VBA and Custom Forms 7
e_a_g_l_e_p_i Need help updating email in Outlook 2021 Using Outlook 10
V Outlook spam filter misbehaving Using Outlook 9
L what are the downsides of running both classic and new outlook on same win 11 pc? Using Outlook 2
P Preventing permanent deletions in Outlook on the Web Using Outlook 0
L any trick to embedding images in new outlook and outlook on the web contacts? Using Outlook 4
L new outlook contacts searching Using Outlook 5
R Outlook 2010 Outlook 2010 migration question Using Outlook 2
W New Outlook PEOPLE blank Using Outlook 6
C New Outlook issues with Gmail, particularly labels/folders Using Outlook 3
E What is the next workaround for macro in New Outlook 1.2025.1111.100 Outlook VBA and Custom Forms 3
E Need to digitally sign macro but VBA\Outlook crash Outlook VBA and Custom Forms 4
P Outlook 2003 no longer opens "without" Folder List Showing in Navigation Pane Using Outlook 2
Hornblower409 Outlook 2010 - Never ending update Using Outlook 0

Similar threads

Back
Top