>#Define wdSaveChanges -1 > >Local oWord, oDoc, ix, lcFileName, lcDocName, lcPath >lcDocName = 'c:\My Folder\MyMerged.doc' >lcPath = 'c:\My Folder\MergedDOCS' > >If !Directory(m.lcPath) > Md (m.lcPath) >Endif > >oWord = Createobject('Word.Application') >With oWord > .Documents.Open( m.lcDocName ) > oDoc = .ActiveDocument > For ix = 1 To oDoc.Sections.Count > oDoc.Sections(m.ix).Range.Copy() > With .Documents.Add() > .Content.Paste > .Content.Find.Execute("^b", ,,,,,,,,"") > lcFileName = Forcepath(Forceext( ; > Juststem( m.lcDocName )+ Padl(m.ix,3,'0'), 'doc' ), m.lcPath ) > .SaveAs( m.lcFileName ) > .Close( wdSaveChanges ) > Endwith > Endfor > .Quit() >Endwith >>