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?
 
AFAIK, the autoarchive commands are not exposed in the object model. You'd need to use sendkeys - which is very clunky.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
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
A Outlook can't remember outlook.com, Exchange password. Using Outlook 0
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
D Delete Outlook emails from MS server Using Outlook 12
B Outlook tasks and PDF Using Outlook 4
D Outlook 2019 is no longer asking for password ... Using Outlook 5
Kika Melo How to mark as Junk any message not from Contacts (in Outlook.com) Using Outlook 3
L Outlook attachments from OneDrive as links Using Outlook 0
G Outlook 365 My iCloud Outlook doesn’t work after reinstalling Microsoft365 on Windows 10 PC – now I get error message on contacts and calendar Using Outlook 1
T How to Export & Import GMAIL Contacts into Outlook 2021 ? Using Outlook 4
M Synchronization and backup of Outlook from local to server. Using Outlook 8
T How to get an EVENT COLOR option in Outlook 2021 ? Using Outlook 0
K How can I delete an e-mail from Outlook Using Outlook 1
V Outlook Error The Attempted operation Failed. An Object Could Not be found Outlook VBA and Custom Forms 0
P Yahoo/IMAP folder rename by Outlook desktop 365 Using Outlook 0
A Outlook 2019 folder counter Using Outlook 0
A Relocate Search Bar in Outlook Using Outlook 2

Similar threads

Back
Top