How to send subscriptions with only existing data - excel

I am new at creating subscriptions. I have a report that needs to be sent via subscription to recipients in EXCEL Format. This report has 3 tables in one page which automatically will generate 3 separate sheets in Excel. Now the problem is some of these Excel sheets can be empty and some can contain data. So the requirement is to send report if data exists. I want to generate either data driven subscription or create an expression that will allow me to send only data existing report to the recipients. However I cant find an answer how to do it. Can anyone direct me, please
Thank you in advance

Related

Search email in Outlook for Customer ID, forward email to email address in database

Sorry, complete noob here... we have a client that has a list in Excel of 1,500 customers with their Customer ID and their email address.
As an invoice email comes into a mailbox they want a way to search the email body for the Customer ID and then forward to the email address in the Excel spreadsheet.
It doesn't have to be Excel, but it has to be simple enough for an end user to add to the list in the future.
Can this be done with VBA to search a database from Outlook, or do I need to look at a third party program? If the latter, can anyone recommend one?
Yes, it is possible to implement such things according to your needs. You can create a VBA macro or develop a COM add-in if you need to distribute the solution on multiple machines. In case of VBA the starting point is to get familiar with the environment, see Getting started with VBA in Office.
You need to start from handling incoming emails, so the Application.NewMailEx can be helpful in that case. This event fires once for every received item that is processed by Microsoft Outlook. The item can be one of several different item types, for example, MailItem, MeetingItem, or SharingItem. The NewMailEx event fires when a new message arrives in the Inbox and before client rule processing occurs. The EntryIDsCollection string contains the Entry ID that corresponds to that item. Use the Entry ID to call the NameSpace.GetItemFromID method and process the item.

How can I use a VBA macro on an excel form (used by multiple people) to send a completed form as a PDF attachment from dynamic Gmail accounts

I have created a form for the use of our less tech-savvy field supervisors. It is a form that they have to manually fax us and it usually arrives much later than what we need in the administrative office that I work at. I was wanting to use this new excel form to assist them with effectively completing the form and using a single button command to create a new PDF and Excel file with a dynamic name (based on sheet name) and to automatically send it as an email through their company gmail account.
I have successfully managed to create the dynamic sheet name and creation of the PDF and new Excel document, but I cannot seem to find a way to use gmail as a way to email said PDF. The only sources I can find regarding it seem to limit it to one specific email address that can be used to send it. I need to find a way to have it be dynamic since we have dozens of different people that would use this form.

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!

From Excel to Outlook: how to do the link especially with files such as PDF

First a few words of context:
In my company we always have to attach 3 PDF files when it comes to sending an e-mail (by Outlook) to a client regarding a product. Sometimes when we speak about several products, we have to send even more PDF files. Hopefully some files are redundant because they are "family" of products but still it's really a mess.
Then I got the idea of creating an excel sheet with the list of all the products and all the associated PDFs to send. The idea is to tick the box of which files we want to send then click on the big email icon and all the chosen documents will be already attached to an e-mail in Outlook. After that all you have to do is to write the name of the client and you're done: send it!.
Having an idea is great but implementing it is better. That's where my Excel and VBA skills are lacking.
Here are the questions:
1.how to assign a pdf files to a "box"
2.how to create the link from Excel to an email in Outlook by simply clicking on the mail icon so that all chosen documents are attached in the email?
Here are the pictures that will help you understand the issue.
Your approach is almost right, but off a bit. Please see the link below. You should find your answer there.
http://www.rondebruin.nl/win/s1/outlook/amail6.htm

How can I create a connection/link between Excel and an Outlook email?

I've been sending Outlook emails from Excel for a while, using it to manage my sales and project management activities at work. I've been enjoying increased productivity from it, so I want to do some more advanced things. For example, I think I have the code worked out, probably in a crude way, to have Excel help keep track of emails that have not been replied to. (I simply have Outlook, for each new email, open a workbook, and create a record in a new row, then have Excel attempt to match it to an email I previously sent.)
But once I have a record in Excel of such an email, it has no link or connection to the actual email. I want to be able to click on the Excel icon or link for the email, and then pull up the actual email.
I have found possibilities in using EntryIDs and MessageIDs, Outlook URLs and GUIDs,and even good-old AdvancedSearch (but I think having Excel search for an email that it initiated seems pretty clunky; there should be a way to create a hard link to the email).
Relatedly, and also probably just as clunky, but I've pondered "embedding" a unique identifier in each Excel-initiated email, that could be used to find it and link it back to a record in Excel. In an HTML email, I can add a string of numbers under my signature, in white text on a white background, and it's not perfect but in most cases should go unnoticed, and would allow my spreadsheet to positively identify it (as a reply to a particular email, etc.)
I know we're not supposed to ask for "advice" but I am hoping someone can point me in the right direction to something that may work for what I hope to accomplish.
Why not use the email's time sent (TIMESTAMP - MMDDYYYYHHSS), Recipient, and Subject Line as unique, identifying markers? Add these fields to your row data. Then, after email is sent, create a macro event that will:
Launch the Outlook App
Open the Sent Folder
Loop through all items
Filter email to the markers (Time, Recipient, Subject Line) of the active Excel row
Open the Email Item
Aside, my personal advice is to use a database like MS Access which works great with its siblings, Excel and Outlook. Also, it is designed to maintain relationships between data elements. Access could hold all the needed email content (emailID, recipient, subject, body, date, emailsent?) and with forms can provide AfterUpdate, ButtonClick, OnOpen events to manage the process of data entry, email process, data update, so on. If only you knew the increased productivity that comes with a relational database!
You can add a user property to the MailItem class. See the UserProperties collection for more information.
The automated systems add an ID to the end if the Subject line.

Resources