how to check if outlook email subject exists today and return a text on excel thereafter - search

I'm trying to perform a check to see if I have completed all my BAU tasks by searching the subject on outlook.
The emails subjects will be on one column. The code should pick from that column and if it exists on Outlook today, it will reflect as "Task Completed". Else "Task Incomplete".
Appreciate all the help I can get from you guys. Thanks in advance.
refer to screenshot

Related

Trying to draft custom email body in outlook from excel spreadsheet

I'm trying to learn how to use Excel/VBA to automate as much of the below workflow as I can:
I receive an email from a manager notifying me that an employee has Covid. This initial notification is not standardized
I manually enter the information (employee name, their state, company, test date, test results, etc) into a spreadsheet. Sometimes certain cells information are left blank if they are not provided in #1
I REPLY ALL to original email. I use a template and edit based on the information I've entered into the spreadsheet (for instance, certain states have different guidelines) and attach PDFs depending on the company. I may also ask for missing information
My goal is to:
Be able to press a button in excel to draft an email body with information I've entered into spreadsheet. A combination of "mad lib" and "if this then that". If specific cells are blank, Id want the email to include what information i still need. I only send this specific email once, but I have to do it again every time there is a new Covid case.
My restrictions are:
Multiple people use this same workflow and spreadsheet, so ideally it would be simple for coworkers. I do not want excel to automatically send the email without the user reviewing it first.
I am very new to VBA, but am learning Python.
I cannot download anything on my work computer.
Thank you so much!

Excel sending automatic emails reminders rgd coming due dates

I am trying to build an Excel sheet with due dates and corresponding email addresses.
When it is 10 days before the due day, ideally Excel would automatically send the corresponding person an email reminding them about the due date.
I found some VBA codes online but they can only send emails to one designated emailing address.
Please could anyone kindly point out where I should be looking at? Thanks a lot!
What I understand is that you would like to send the same email to multiple recipients if a condition is met. I assume you are able to do this on a per-person level (if not, refer to this resource), so you could simply repeat this procedure for the targeted number of recipients. Or you could also CC or BCC those other recipients, however I would suggest doing it on a personal level if time is not an issue as this adds to privacy of targeted recipients.
This post about CC and this post about BCC could help, or you could simply have a for loop for each recipient and keep your email content the same. Good luck!

Creating a hyperlink email within a vba created email

I am trying to add the hyperlink function to an email address, within an email generated by vba. Any and all help is appreciated as I am extremely new to working with vba.
Further, we are currently performing our annual customer information audit. Would you please complete the attached form and return it to abc#yahoo.com "
Thank you!
There are many free online HTML editors available. You can google them and use any one of them to write you email as you please:
http://www.quackit.com/html/online-html-editor/
In the above example you can then click on "Source" to see the HTML source code to generate the email you just "designed".
Now you can use this HTML code in your VBA. Just make sure that you replace any usage of " (single quotation mark) with "" (double quotation mark) when you compose the email string.
Also, make sure to generate a HTML email using .HTMLBody as indicated here:
https://msdn.microsoft.com/en-us/library/office/aa171418%28v=office.11%29.aspx

Excel VBA to pull name from body of email

I am looking for some code to pull values from the body of an outlook message. I will set up the whole situation I need below:
An email is sent with specific subject and certain values in body.
-Subject could be "Test"
-In body of email it would be:
Name: (name here changes)
Number: (number here changes)
I can set up the Excel file I need to open after this email is received, but what I need is for that Excel file that opens, to look back at that email message and pull the name and number (that can change) into cells A1 and B1.
Keep in mind that there will be multiple emails coming through with this same format, so it should only look in message that was just sent a minute or two ago.
Is this possible? Any help would be greatly appreciated. Thanks.
Since the triggering action is the receipt of an email, I would suggest that you focus on having Outlook running the script when the message is received and then pushing the information to the Excel sheet. Here is something that will get you started.
You will want to make sure that there is a way to easily identify where the name field is on the email body too, possibly wrapping it like [[NAME]] Person Name Here.

Send reminder email one day before task due date

I have a calculated variable called SendEmailDate (=[Due Date]-1), which will be used to determnie when to send the reminder email because I want something to go out one day before the task is due.
Here is what I currently have for my workflow.
-- First step
If Status == Completed
Stop task
-- Second step
If SendEmailDate == Today (how do I get this?)
Send reminder email
Else
Pause until SendEmailDate
I'm pretty sure that the logic above will work. But how do I get the current date in a workflow? I did find this which shows how to loop a workflow but that didn't really help me in my cause.
Thank you.
In the formula list in Sharepoint Designer, isn't there an option for "Current Date" that you can drop into your workflow?

Resources