+ Reply to Thread
Results 1 to 26 of 26

mail merge in excel?

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    mail merge in excel?

    Im wondering how you can mail merge in excel (not MS word) -

    when I say mail merge I mean to automatically insert a batch of addresses into a batch of excel documents [one address goes into each of the excel invoices] -

    Ive found guides on how to do this if your documents/invoices are created in word but no guide on how to mail marge into an excel invoice document –

    is there any guide on how to do this?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: mail merge in excel?

    What's wrong with using MsWord's Mail Merge ?
    Lots of info at https://www.msofficeforums.com/mail-merge/

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: mail merge in excel?

    Quote Originally Posted by jeo1 View Post
    Im wondering how you can mail merge in excel (not MS word)
    You can't. You can only do mailmerges using applications that include that functionality (e.g. Word, Publisher). Anything else requires the user to develop their own system (in Excel, usually employing VBA and an output worksheet)
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Quote Originally Posted by Pepe Le Mokko View Post
    What's wrong with using MsWord's Mail Merge ?
    Lots of info at https://www.msofficeforums.com/mail-merge/
    because I'm using excel to create invoices, it's easier for me to make invoices in excel than word

    but if macropod is correct in saying there's no built in functionality to do a mail merge in an excel document itself, then I'll have to switch to using word to create invoices annoyingly

  5. #5
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    I wonder why microsoft have lots of excel invoice templates here if there's no way to do a mail merge in excel, i'd be thinking that'd be a definite feature available if they went through the effort of making invoice templates
    Last edited by jeo1; 11-15-2020 at 09:03 AM.

  6. #6
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: mail merge in excel?

    If you are already producing your invoices in Excel it is only one more small step to save & print from pdf's.
    Upload a sample workbook as per the big yellow banner at the head of the page.
    All that is needed is a small VBA app and you keep everything in one file.
    torachan.

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    @torachan is correct, just load your working file as per the yellow banner and we can assist further.

  8. #8
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: mail merge in excel?

    Quote Originally Posted by jeo1 View Post
    I wonder why microsoft have lots of excel invoice templates here if there's no way to do a mail merge in excel, i'd be thinking that'd be a definite feature available if they went through the effort of making invoice templates
    Because generating invoices from a template and doing a mailmerge are not the same thing. You would still have to write formulae and/or VBA code to populate the templates and save the output. A major difference is that, whereas out of the box a mailmerge produces a single new document containing completed invoices for all the processed records, a formula-driven Excel template cannot and VBA-driven ones rarely do.

  9. #9
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Here's a sample workbook, I'm trying to setup a thing where the "to" address will be filled in with a list of addresses I have in another excel file
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    And here's a sample address book i'd be inserting into each file (in this sample I've only one address entered, but in my own theres about 60 addresses in the excel file

    I'm trying to automatically insert each of these addresses into the sample workbook file, making it so that there's be 60 of these workbooks each one with a particular address written into it

    can you tell me how i'd go about doing this for excel invoice files, using the small VBA app?
    Attached Files Attached Files
    Last edited by jeo1; 11-16-2020 at 08:23 AM.

  11. #11
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    For simplicity sake and efficiency, can the second workbook be the second sheet in the invoice workbook? Do you have to have two workbooks? Also, you list five lines in the address spreadsheet, but the invoice has both billing, and shipping address lines, duplicate fields, which do you want populated. And thirdly, will you also be populating the invoice number and the customer id?

    Once you 'mail merge', do you want to send an email or just create a PDF, or both? If using Email, do you use Outlook?
    Last edited by maniacb; 11-16-2020 at 09:52 AM. Reason: add question

  12. #12
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: mail merge in excel?

    Quote Originally Posted by macropod View Post
    Because generating invoices from a template and doing a mailmerge are not the same thing. You would still have to write formulae and/or VBA code to populate the templates and save the output. A major difference is that, whereas out of the box a mailmerge produces a single new document containing completed invoices for all the processed records, a formula-driven Excel template cannot and VBA-driven ones rarely do.
    Well put

  13. #13
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Quote Originally Posted by maniacb View Post
    For simplicity sake and efficiency, can the second workbook be the second sheet in the invoice workbook? Do you have to have two workbooks?
    It can be the 2nd sheet if that makes things easier yes, I don't need two workbooks - just one sheet for the invoice and a 2nd sheet for the addresses to be entered into the invoice

    Quote Originally Posted by maniacb View Post
    Also, you list five lines in the address spreadsheet, but the invoice has both billing, and shipping address lines, duplicate fields, which do you want populated.
    I'll be removing the "ship to" filed and just using the "to" field, so you can ignore the "ship to" field, I'll just be filling in the "to" field

    Quote Originally Posted by maniacb View Post
    And thirdly, will you also be populating the invoice number and the customer id?
    yes I will

    Quote Originally Posted by maniacb View Post
    Once you 'mail merge', do you want to send an email or just create a PDF, or both? If using Email, do you use Outlook?
    I'll just be creating a PDF, no need to email it

  14. #14
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    Are you expecting to also populate the Item/Description/... line with this process? Are all invoices based on a single line or multiple lines of these? Or is the information in this line static(not customer specific) for all customer invoices?

  15. #15
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Quote Originally Posted by maniacb View Post
    is the information in this line static(not customer specific) for all customer invoices?

    for now it's static but in the future I may be changing it

  16. #16
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    Try out this process


    Please Login or Register  to view this content.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Many thanks pal that worked, is it possible to customize it so that the text you enter can be a different size and type of font?

  18. #18
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    All you have to do is change the format on the invoice sheet.

  19. #19
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Ah yes I see that now

    would anyone know how to make cell H23 display the figure amount of how much the tax is? E.g. In my area the tax is 20%, so if the subtotal was 5£ that'd be a tax of £1

    so instead of it displaying H23 as "0.2" I want it displayed as £1 https://i.imgur.com/ycGRXXU.png
    Attached Files Attached Files

  20. #20
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    Use the same format function and select the option for percent

  21. #21
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Cheers buddy, I've another question if you get a chance

    for the invoice workbook I'm using strangely any text that I post under row 27 doesn't appear when I press ctrl+P

    I had a look through the menu tabs here https://i.imgur.com/QaonHAn.png but couldn't find any differences so I'm not sure why the text [below row 27] doesn't appear in the print screen

    also doesn't appear when I save the excel file as a pdf
    Attached Files Attached Files

  22. #22
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    If you go to 'view->Page Break Layout' you can see that only certain ranges are visible. You can drag down to make the area greater.

  23. #23
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: mail merge in excel?

    Here is sample mail merge in excel but in Turkish.
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Quote Originally Posted by maniacb View Post
    Try out this process


    Please Login or Register  to view this content.
    for this VBA script, would it be possible to make the PDF files automatically go into another folder? E.g. I want to make the PDF files go into a subfolder of where the excel workbook is, and this folder is called "PDFs"

  25. #25
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: mail merge in excel?

    Update this line

    Please Login or Register  to view this content.

  26. #26
    Registered User
    Join Date
    08-18-2020
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: mail merge in excel?

    Would there be a line of code that makes it so the macro enters in a random 8 digit code into a specific cell each time? So that each PDF document that's created would have it's own randomly generated 8 digit code

    E.g. If I wanted to write a randomly generated 8 digit code into cell H8 what "value =" code would you use for this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mail Merge with only Excel
    By EchoPassenger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-12-2016, 06:29 PM
  2. Replies: 0
    Last Post: 01-05-2015, 07:35 AM
  3. Replies: 2
    Last Post: 01-22-2013, 11:37 AM
  4. Replies: 2
    Last Post: 07-12-2012, 08:11 PM
  5. Can I merge an excel list to an excel sheet like mail merge in wor
    By chcoach in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2006, 03:15 PM
  6. [SOLVED] merge with Word How can I get excel to mail merge zip codes plus 4 correctly?
    By Kathy at Sauder Feeds in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2005, 07:05 AM
  7. [SOLVED] mail merge from excel
    By Vass in forum Excel General
    Replies: 4
    Last Post: 01-07-2005, 01:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1