Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2013, 08:17 AM
heyullama heyullama is offline mail merge in excel to send pdf forms Windows 7 64bit mail merge in excel to send pdf forms Office 2010 64bit
Novice
mail merge in excel to send pdf forms
 
Join Date: Nov 2013
Posts: 1
heyullama is on a distinguished road
Default mail merge in excel to send pdf forms


I have a CSV file that tracks flu vaccines for employees. Each line of the CSV file has a corresponding pdf file that is documentation of the employee’s flu vaccine. The employee line in the CSV file includes their email address and the name of the pdf file. Is it possible to create a mail merge to automatically email the pdf file to employees?
Reply With Quote
  #2  
Old 11-28-2013, 10:01 AM
BobBridges's Avatar
BobBridges BobBridges is offline mail merge in excel to send pdf forms Windows 7 64bit mail merge in excel to send pdf forms Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

It's certainly possible to write a VBA program that will do the job. If you go that route, Pecoflyer will probably suggest that you repost this question in the Excel Programming forum. But as for using mail-merge, I've never used it in Excel and only long ago in Word; I expect it can be done but I couldn't swear to it. Let's see whether anyone has more information, and after Thanksgiving if there are no responses we can talk about how to do it in VBA, if you want to.
Reply With Quote
  #3  
Old 11-29-2013, 02:00 AM
macropod's Avatar
macropod macropod is offline mail merge in excel to send pdf forms Windows 7 32bit mail merge in excel to send pdf forms Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

There's no need to write a macro - it's already been done! See: http://word.mvps.org/FAQs/MailMerge/...ttachments.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 11-30-2013, 09:45 AM
Sgt Rock Sgt Rock is offline mail merge in excel to send pdf forms Windows 8 mail merge in excel to send pdf forms Office 2010 64bit
Novice
 
Join Date: Nov 2013
Location: Dallas, Texas
Posts: 16
Sgt Rock is on a distinguished road
Default

I agree with "macropod," there is, most likely, no need to write a VBA program. I say "most likely" because it is somewhat simple if you have Microsoft Office for Excel and Word! I have a set of instructions I wrote up at work I could forward to you IFF (if and only if) you have Word 2007 and Excel 2007, or possibly later.

To paraphrase - generate the script/verbiage/note you want to send in an email in Word. Every place you want a "variable" - e.g., a person's name, possibly their age, what department they work in, whatever, enclose that "variable name in brackets for ease of identification and location in your script. I also highlight in red so I can easily identify it both in the script and when emails are answsered, e.g., Dear [personsname]: you are receiving this email because your department [departmentname] has been selected to....... What you are doing is making "placeholders" in your verbiage, to hold the associated information that is located in Excel. In Excel you'll create a database with the variable you want in your email, e.g., personame and departmentname, along with the email address.

Then you proceed to mail merge in Word and "connect" to your Excel file that has your specific information. I have been able to send out hundreds of emails in several seconds, about 30 seconds for 250 emails.

The time involved is setting up the data and getting your script written the way you want. The actual mail merge itself only takes a few seconds to complete.

This is my first post on here and have no clue if I can attach my instructions or copy and past them in a reply. If someone would let me know which is most appropriate, I'd be happy to help...

Happy Holiday Season to All,
Sgt Rock (Mort)
Dallas, TX
Reply With Quote
  #5  
Old 11-30-2013, 07:05 PM
macropod's Avatar
macropod macropod is offline mail merge in excel to send pdf forms Windows 7 32bit mail merge in excel to send pdf forms Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Sgt Rock: Your repeated references to a 'script' suggest you don't understand that's just another way of describing a macro, which is a VBA program; either that or you've overlooked the core issue of how to attach a different PDF to each email.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 12-01-2013, 01:51 PM
Sgt Rock Sgt Rock is offline mail merge in excel to send pdf forms Windows 8 mail merge in excel to send pdf forms Office 2010 64bit
Novice
 
Join Date: Nov 2013
Location: Dallas, Texas
Posts: 16
Sgt Rock is on a distinguished road
Default

Thanks for your info. Personally, I have never, ever seen "script" used in place of macro. Point me to that please. My apologies if it caused confusion. So forget the word, "script" and in its place simply use the word "message"

If one is using Excel for the database, Word as the word processor, and Outlook as the email vehicle, then one need not do any VBA programming. Of course I guess it's possible to formulate a program to automate the process even more, and perhaps even more applicable if one is not using Outlook or Word? I've only done mail merge with the above.

"In a nutshell," type your message in Word - insert "placeholders" where you want specific information, e.g., names, addresses, etc, Have those data in an Excel worksheet, preferably in the same sequence as they appear in your message, in addition to the individual email addresses that go with those data. While in Word, begin the "mail merge" process, accessing the Excel workbook with the data, finish the process by pointing Word to the email addresses in Excel. That's it, off to the races.

Happy Holidays to All!!
Reply With Quote
  #7  
Old 12-01-2013, 02:03 PM
macropod's Avatar
macropod macropod is offline mail merge in excel to send pdf forms Windows 7 32bit mail merge in excel to send pdf forms Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Sgt Rock View Post
Thanks for your info. Personally, I have never, ever seen "script" used in place of macro. Point me to that please.
See, for example: http://www.ehow.com/how_7198112_write-vba-script.html, http://wiki.imacros.net/Excel_VBA_Example_Code, http://www.vistax64.com/vb-script/19...ipt-macro.html

The rest of your reply still doesn't address how to attach a PDF file to an email via a mailmerge. No-one is questioning whether you can create email messages via a mailmerge without a macro. But attaching a personalised file of any kind cannot be done via mailmerge field coding - a macro is required - which is why I pointed the OP to a ready-made solution.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 12-01-2013, 03:32 PM
Sgt Rock Sgt Rock is offline mail merge in excel to send pdf forms Windows 8 mail merge in excel to send pdf forms Office 2010 64bit
Novice
 
Join Date: Nov 2013
Location: Dallas, Texas
Posts: 16
Sgt Rock is on a distinguished road
Default

You are right - I totally missed the "attach a pdf file"
I must slow down and learn to read word for word what is in front of me.
Thanks for pointing out and you are correct, attaching a personalized file is a totally different story Paul!!
Best wishes for you and your family's holiday!
Mort (Sgt Rock)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Mail merge Joren Word 0 07-09-2013 07:38 AM
Need Help w/Mail Merge - Multiple Lots & 1 Owner - Don't want to send Duplicates dfwman Mail Merge 3 03-28-2013 07:11 PM
mail merge in excel to send pdf forms Format email body-Using Excel VBA to send mail Claytocb Excel Programming 1 01-31-2013 11:58 PM
Send e-mail message in Finish & Merge CDTom Mail Merge 1 08-24-2012 12:52 AM
mail merge in excel to send pdf forms Send fax with mail merge image (logo) problem dipak.patel@i-link.co.in Mail Merge 1 01-06-2011 10:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft