+ Reply to Thread
Results 1 to 3 of 3

VBA Code - Exporting One Excel File to Multiple Word Documents

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    22

    VBA Code - Exporting One Excel File to Multiple Word Documents

    Hi,

    I am looking to split out data from one excel file into multiple word documents without having to manually copy, paste and save each time. I have attached an excel file where I will need the data from columns E-G pasted into 5 different word documents based on the number in column D. There is also constant text in each word file that will need to be carried over (this text is in the attached word file).

    The final product for the first file would look like this in Microsoft Word:

    Dear User,
    Here is the following information from excel:

    Letter1 Letter2 Letter3
    a g a
    b b d
    c d f

    The file would then be saved and titled "1 - Request". Then, 4 more files would be created. The second one would be saved as "2 - Request" and look like this:

    Dear User,
    Here is the following information from excel:


    Letter1 Letter2 Letter3
    d r h
    e w k
    f q l

    If this is easier without using VBA, I am open to other suggestions as well!

    Thanks,

    Nicole
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: VBA Code - Exporting One Excel File to Multiple Word Documents

    Try this out.

    Included is a Word template. Use it to create form letter. Be sure not to delete the Word bookmark. (If you do, just add it back in.)

    Please Login or Register  to view this content.
    Attached Files Attached Files
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    10-02-2017
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    22

    Re: VBA Code - Exporting One Excel File to Multiple Word Documents

    David,

    This is great - thank you so much for your help!

    Nicole

+ 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. VBA - Combining multiple word documents based on file name and preserving format
    By flakjack in forum Word Programming / VBA / Macros
    Replies: 13
    Last Post: 03-06-2017, 05:34 PM
  2. [SOLVED] Code help: Selecting documents into one Word document via Excel
    By jk. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2015, 12:21 PM
  3. VBA Code to create n number of word documents from excel range.
    By skonduru in forum Word Formatting & General
    Replies: 1
    Last Post: 01-30-2013, 03:04 AM
  4. Replies: 0
    Last Post: 09-01-2010, 04:56 PM
  5. [SOLVED] importing and exporting documents using word/excel
    By Denise Camara in forum Excel General
    Replies: 0
    Last Post: 07-07-2006, 02:35 PM
  6. Replies: 4
    Last Post: 02-06-2006, 05:00 AM
  7. [SOLVED] why do word documents show up on excel and access file menu?
    By LJH in forum Excel General
    Replies: 1
    Last Post: 02-26-2005, 08:06 AM

Tags for this Thread

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