Sub MailMergeToMultiFile()
Application.ScreenUpdating = False
Dim i As Long, Doc As Document
Set Doc = ActiveDocument
ChangeFileOpenDirectory Doc.Path
With Doc.MailMerge
If .Destination < 0 Then
MsgBox "File hien hanh chua thiet lap Mail Merge"
Else
.Destination = wdSendToNewDocument
.SuppressBlankLines = False
For i = 1 To .DataSource.RecordCount
.DataSource.FirstRecord = i
.DataSource.LastRecord = i
.Execute Pause:=True
ActiveDocument.SaveAs FileName:="MailMerge " & Format(i, "000")
ActiveDocument.Close
Next
End If
End With
Application.ScreenUpdating = True
End Sub