Closed Thread
Results 1 to 2 of 2

VBA Code to create n number of word documents from excel range.

  1. #1
    Forum Contributor
    Join Date
    09-04-2007
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    133

    Unhappy VBA Code to create n number of word documents from excel range.

    Hi all,

    I am pretty new in VBA coding for word documents. I am trying to come up with a VBA code to copy and create n number of word documents from excel range (for example, say excel spreadsheet has 100 items in range A, i would like to loop through the range in column A and copy and create 100 word documents).

    After creating say 1st document, i would like to loop through a particular row and fill the text form fields in newly created word document with the values in row 2. Say i have 20 columns with data for each item.

    Any help will be greatly appreciated.

    Thanks and regards,

    Kon.

  2. #2
    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: VBA Code to create n number of word documents from excel range.

    Have you considered using mailmerge? No code required.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  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: VBA Code to create n number of word documents from excel range.

    Duplicate of post at: http://www.excelforum.com/word-progr...html?p=3078619

    Please read forum rule 5.

Closed 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