J
Jennifer
Hello. I have Word 97. And I am trying to run this
splitter Macro. I have attached the commands. But when it
get to the end "document type" it give me an error. Does
anyone know why I get this error?
I am trying to take a 50 page document and make 50
separate documents. PLease email me any suggestions. THANKS
Here is the macro:
Sub SplitLetterMacro()
'
' SplitLetterMacro Macro
' Macro recorded 11/26/2001 by Joan Miller
'
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
With Selection.Find
.Text = "^b"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.HomeKey Unit:=wdStory, Extend:=wdExtend
Selection.Cut
Selection.Delete Unit:=wdCharacter, Count:=2
Documents.Add DocumentType:=wdNewBlankDocument
Selection.Paste
End Sub
splitter Macro. I have attached the commands. But when it
get to the end "document type" it give me an error. Does
anyone know why I get this error?
I am trying to take a 50 page document and make 50
separate documents. PLease email me any suggestions. THANKS
Here is the macro:
Sub SplitLetterMacro()
'
' SplitLetterMacro Macro
' Macro recorded 11/26/2001 by Joan Miller
'
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
With Selection.Find
.Text = "^b"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
Selection.HomeKey Unit:=wdStory, Extend:=wdExtend
Selection.Cut
Selection.Delete Unit:=wdCharacter, Count:=2
Documents.Add DocumentType:=wdNewBlankDocument
Selection.Paste
End Sub