L
Laura
i have 60+ docs that need to burst into 4 docs each. 3rd row table at top of
original doc contains app name that i would like to use in filename (ex,
EssBase). would like to number docs...essbase1, essbase2, essbase3,
essbase4..but don't know to incorporate this into my code. docs have never
been saved. part of current code is as follows...
....
Selection.Find.Execute
Selection.HomeKey Unit:=wdLine
Selection.HomeKey Unit:=wdStory, Extend:=wdExtend
Selection.Copy
Documents.Add DocumentType:=wdNewBlankDocument
Selection.PasteAndFormat (wdPasteDefault)
Selection.HomeKey Unit:=wdStory
Selection.MoveDown Unit:=wdLine, Count:=3
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Copy
ActiveDocument.SaveAs FileName:="ADS06SPRINT 1.doc", FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
End Sub
original doc contains app name that i would like to use in filename (ex,
EssBase). would like to number docs...essbase1, essbase2, essbase3,
essbase4..but don't know to incorporate this into my code. docs have never
been saved. part of current code is as follows...
....
Selection.Find.Execute
Selection.HomeKey Unit:=wdLine
Selection.HomeKey Unit:=wdStory, Extend:=wdExtend
Selection.Copy
Documents.Add DocumentType:=wdNewBlankDocument
Selection.PasteAndFormat (wdPasteDefault)
Selection.HomeKey Unit:=wdStory
Selection.MoveDown Unit:=wdLine, Count:=3
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.Copy
ActiveDocument.SaveAs FileName:="ADS06SPRINT 1.doc", FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
End Sub