+ Reply to Thread
Results 1 to 5 of 5

Mailmerge macro changes needed

  1. #1
    Forum Contributor aganesan99's Avatar
    Join Date
    04-26-2013
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    129

    Mailmerge macro changes needed

    Hi,

    I am using the following code to perform mailmerge and save as individual doc in a separate folder.

    Please Login or Register  to view this content.

    The problem is like the saved document format is different when compared to the mailmerge template. Instead of creating a new document and pasting it, all I need is mailmerge and save as a new document.

    I am new to VBA and I need to know what are the changes to be made.

    Attached is the sample file with the output in the output folder.

    Can someone help me please

    If you need further details, please post

    Thanks,
    aganesan99
    Attached Files Attached Files
    Last edited by aganesan99; 12-27-2013 at 10:46 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Mailmerge macro changes needed

    Hi aganesan99

    The issue appears to be that the New Word Documents are being created with 8 1/2 by 11 paper and with Paragraph Spacing of 10 pts. These lines of Code fix that issue. Your Font Formatting is also not the same...there MAY be a way to fix that...haven't pursued it.
    Please Login or Register  to view this content.
    Full Code
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor aganesan99's Avatar
    Join Date
    04-26-2013
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Mailmerge macro changes needed

    Thank you very much John. It works fine.

    But is there a way to make the format as it is in the mailmerge template.

    Please solve this part which would be very helpful to me.

    Thanks in advance

    aganesan99

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Mailmerge macro changes needed

    Hi aganesan99

    This should get you pretty close.

    Add these two Dim Statements
    Please Login or Register  to view this content.
    Add these lines of Code
    Please Login or Register  to view this content.
    Entire Code
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor aganesan99's Avatar
    Join Date
    04-26-2013
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    129

    Thumbs up Re: Mailmerge macro changes needed

    Thanks Jake. You are great!!!!!

    That's really perfect.

    Thanks a lot. You saved my day.

+ 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. MailMerge
    By turnej in forum Excel General
    Replies: 0
    Last Post: 05-17-2013, 10:20 AM
  2. Mailmerge
    By turnej in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2013, 02:32 AM
  3. vba mailmerge problem
    By roberto21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2013, 02:55 PM
  4. Mailmerge
    By tmac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2007, 05:14 PM
  5. [SOLVED] mailmerge
    By frank in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 04:06 PM

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