Makroproblem in Word 2003

Hallo Experten!

Ich habe folgendes Makro programmiert:

Sub FormatÄndern()
 With Selection.Font
 .Name = "Arial"
 .Size = 10

 Selection.ParagraphFormat.Alignment = wdAlignParagraphJustify
 Selection.Paragraphs.LineSpacingRule = wdLineSpaceSingle
 Selection.Paragraphs.Space1
 End With
 With Selection.Find
 .Text = "^p^p"
 .Replacement.Text = " "
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll 
 With Selection.Find
 .Text = "^p"
 .Replacement.Text = " "
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll
 With Selection.Find
 .Text = ""
 .Replacement.Text = "^p"
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll
 Selection.Find.ClearFormatting
 Selection.Find.Replacement.ClearFormatting
 With Selection.Find
 .Text = "^g"
 .Replacement.Text = ""
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll
 ActiveWindow.ActivePane.SmallScroll Down:=-12
 With Selection.Find
 .Text = "zurück zum Text"
 .Replacement.Text = ""
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll
 With Selection.Find
 .Text = "^l"
 .Replacement.Text = " "
 .Forward = True
 .Wrap = wdFindAsk
 .Format = False
 .MatchCase = False
 .MatchWholeWord = False
 .MatchWildcards = False
 .MatchSoundsLike = False
 .MatchAllWordForms = False
 End With
 Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Jetzt kommt meine Frage: Wie bringe ich Word dazu, die auftretenden Sicherheitsabfragen (Soll die Suche am Anfang des Dokuments fortgesetzt werden?) mit Nein zu beantworten? Der Makrorecorder hat diese Entscheidung blöderweise nicht aufgezeichnet…
Vielen Dank für die Tips.

Gruß Alex

hi alex

das zauberwort lautet:

.Wrap = wdFindStop

lg
erwin

hi Erwin

Danke das funktioniert einwandfrei! Man muss nur draufkommen!

lg
Alex