+ Reply to Thread
Results 1 to 11 of 11

Mail merge within Excel...not with Word

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Gooding, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    13

    Mail merge within Excel...not with Word

    This is probably very simple and basic but, I want to do a mail merge within Excel and not use Word. I have a table of information...each row is a client....and I want to create a letter per row (or client) using the data in Excel. I did it last year but don't remember how.

    I used the Name manager in Excel and named all of the columns. I then used those names in my letter but I don't know how to make it create all of the letters.

    I tried to use Word out of desperation but it won't format my numbers the same as I have them in Excel.

    Also, is there a way to mark this as urgent? Is there any chat rooms or instant chat helps?
    Last edited by PattiFlick; 01-04-2013 at 06:25 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Mail merge within Excel...not with Word

    Brief answer: if it were me, I'd set up a worksheet as a template for the letter with all the standard text. I'd then use VBA to loop through the raw data records dropping the data from each of the records into the template and printing it ... or saving it as an individual worksheet or .pdf file. It just depends on what you want/need to do with the letters ... hard copy out in the mail, Excel file by email, .pdf file by email, whatever.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Gooding, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Mail merge within Excel...not with Word

    I feel like I did it without VBA code last year.....because there is no code with the spreadsheet that I used last year.....Thank you for your help. And if you have suggestions for VBA code, that would be great.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Mail merge within Excel...not with Word

    As far as I know, you either use Word or you use VBA. With the Word option, the data can be in a Word table or an Excel worksheet.

    Have a look at the following link for an example using VBA:

    http://spreadsheetpage.com/index.php..._without_word/



    Regards, TMS

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mail merge within Excel...not with Word

    I tried to use Word out of desperation but it won't format my numbers the same as I have them in Excel.
    Sure it will; you put the format in the field code.

    See, for example, http://www.gmayor.com/formatting_word_fields.htm and http://www.techsupportalert.com/pdf/e1182.pdf
    Last edited by shg; 01-04-2013 at 09:03 PM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    01-04-2013
    Location
    Gooding, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Mail merge within Excel...not with Word

    I'm having a lot of trouble trying to format in Word. In fact I'm having so much trouble with it I am almost ready to just type in all of the data one letter at a time.

    I really felt like I did this "mail merge" in Excel without having to type in code....
    I have no code in the spreadsheet that I used, I have copies of all of the letters I created last year from the spreadsheet, I just can't remember how I did it.....I'm hoping someone has the answer!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Mail merge within Excel...not with Word

    Hypnosis maybe?

  8. #8
    Registered User
    Join Date
    01-04-2013
    Location
    Gooding, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Mail merge within Excel...not with Word

    That or insanity...is there a way to do it with forms and no code? The name of my report was "autotable"...does that ring a bell? I wouldn't have used that as a name. I feel like I'm not using the right terminology to search the answer..

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,374

    Re: Mail merge within Excel...not with Word

    Forms and no code pretty much don't do anything. Without code, they wouldn't even get loaded.


    Regards, TMS

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mail merge within Excel...not with Word

    You can use formulas ....

    ="Now is the time for all good " & A1 & " to come to the " & A2 & " of their country."

    But mail merge in word is much more powerful, and not that difficult to use.

  11. #11
    Registered User
    Join Date
    01-04-2013
    Location
    Gooding, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Mail merge within Excel...not with Word

    My "Auto sheet" is pulling data from the data sheet. I used the Name Manager for each column in the data sheet and the "auto sheet" (or report) is pulling the data from the data sheet....however, the data displayed on the auto sheet is based on the equivalent row on the auto sheet....for example:

    datasheet
    Agent# Premium Bonus | autosheet
    row 1....... 1 10000 1000 | Agent: =Agent#..shows "1"from row 1 of data
    row 2....... 2 20000 2000 | Premium: =Premium..shows 20000 from row 2
    row 3....... 3 30000 3000 | Bonus: =Bonus..shows 3000 from row 3 of data sheet

    So it is showing the data from the data sheet, just not specific row at a time....
    Also, on the Word solution, the formating would work for one report, and then not work on the next, and may work for a few pages and then not....it was very erratic and frustrating. I will work on using the coding you sent me.....thank you.
    Last edited by PattiFlick; 01-05-2013 at 03:10 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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