MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Sub SaveAsSeperateDocument() Dim x As Long Dim i As Long With ActiveDocument.MailMerge .Destination = wdSendToNewDocument .SuppressBlankLines = True 'get the record count of the datasource With .DataSource .ActiveRecord = wdLastRecord x = .ActiveRecord 'set the activerecord back to the first .ActiveRecord = wdFirstRecord End With 'loop the datasource count and merge one record at a time For i = 1 To x .DataSource.FirstRecord = i .DataSource.LastRecord = i .Execute Pause:=True ///////////////////////// PROBLEM IS HERE /////////////////////////////////////// ChildID = MERGEFIELD CnBio_ID ActiveDocument.SaveAs FileName:=ChildID ///////////////////////////////////////////////////////////////////////////////////////////// ActiveDocument.Close Next i End With End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Generate Unique ID in VB.NET||21||135|
|Starting to use Git with Visual Studio Online||1||70|
|XSLT to look ahead within the following siblings to get an attribute value||4||12|
|Word 2016 (32-Bit) - Hangs when attempting to select an existing list for Mailings||13||30|
Join the community of 500,000 technology professionals and ask your questions.