+ Reply to Thread
Results 1 to 6 of 6

Repeat macros in a loop and save as word files

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Repeat macros in a loop and save as word files

    Hi,
    I have 2 files...one is an excel and other word.....

    In the excel file (customer data) i have the following fields :-

    Name
    Address 1
    Address2
    Phone
    Mobile

    in the word file (letter) i have created the bookmarks to replace from the excel file
    and everything works fine.....

    it copies and replaces the data from the first row and opens the word file.

    HERE IS WHAT I NEED TO DO AFTER THIS :-

    once the data is copied from excel to word i need it to save the word file in a folder
    and then go back to the excel file and do the same for next row of values and save it as a different file.

    the word file names need to be the name from the excel file if possible.

    i have uploaded the files...please have a look and help me resolve this...

    This is the macro code :-

    Please Login or Register  to view this content.
    Awaiting a reply impatiently ....
    let me know if any further clarification is needed... THANKS A TON IN ADVANCE
    Attached Files Attached Files
    Last edited by amanduggal; 06-06-2012 at 10:47 AM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Help Urgently - Excel Macro Modification

    Hi, you need to fix your title and use code tags as per forum rules first.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help Urgently - Excel Macro Modification

    Quote Originally Posted by Mordred View Post
    Hi, you need to fix your title and use code tags as per forum rules first.
    Hope all is well now....thanks....

  4. #4
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Help Urgently - Excel Macro Modification

    anyone please help...this is really urgent for me

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Repeat macros in a loop and save as word files

    hi amanduggal, try this:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-06-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Repeat macros in a loop and save as word files

    Quote Originally Posted by watersev View Post
    hi amanduggal, try this:

    Please Login or Register  to view this content.
    WORKS AWESOME....just what i wanted....thanks a ton...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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