+ Reply to Thread
Results 1 to 6 of 6

Spliting Word Mail Merge Document

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Spliting Word Mail Merge Document

    Afternoon,

    I am relatively new to VB and am looking to create 500+ letters. Excel file contains Names, other detail 1 and other detail 2. Problem I ran into was to be able to print 1 document (as oppose to 500+) in PDF output. I came across the code below and managed to import that into Word

    Please Login or Register  to view this content.

    Excel Format -

    Col A - Name (used in mail merge)
    Col B - Company Name (used in mail merge)
    Col C - Title (used in mail merge)

    However, without modifying
    Please Login or Register  to view this content.
    -> to
    Please Login or Register  to view this content.
    - I get an 4198 Error message. When I use the latter as advised on the topic, I am getting output as 1, 2, 3 etc.

    I am wondering if there is any way to save these PDF outputs as the names (field 1)?

    Thank you.
    Last edited by raxs; 03-30-2021 at 11:51 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,093

    Re: Spliting Word Mail Merge Document

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    12-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Spliting Word Mail Merge Document

    Thank you and I appreciate the assistance thus far.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11)
    Posts
    52,093

    Re: Spliting Word Mail Merge Document

    Thank you.

  5. #5
    Registered User
    Join Date
    12-23-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Spliting Word Mail Merge Document

    I think I may have helped myself looking more closely at the code and changed the Paragraph it was taking. However, I now randomely run into an 4605 error after first few documents

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

    Re: Spliting Word Mail Merge Document

    I suggest you look in the link in the code you posted that points to where it originated...
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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 from Excel to a Word document?
    By brendine in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2017, 04:48 PM
  2. Word Mail-merge document individually
    By escapes88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-21-2014, 11:33 PM
  3. Mail Merge with a embedded Word Document
    By JJV191 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2014, 09:04 PM
  4. Mail Merge from Excel in to Word document
    By levtweeney in forum Excel General
    Replies: 2
    Last Post: 07-08-2014, 10:59 AM
  5. Mail merge to Word Document
    By Banaticus in forum Excel General
    Replies: 8
    Last Post: 08-08-2013, 04:28 AM
  6. [SOLVED] Mail Merge issue when using VBA to go from Word document to PDF
    By Max_Taylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2012, 02:53 PM
  7. Word Mail merge lables from .xls document
    By ibexx in forum Excel General
    Replies: 3
    Last Post: 12-19-2005, 07:50 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