C
Céline Brien
Hi everebody,
When you use a macro to find from the beginning to the end of a document
(with a loop), and when you reach the end of the document, how do you tell
Word NOT to ask if I want to find from beginning of the document ?
Many thanks,
Céline
With Selection.Find
.Text = "xxx"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
End With
While Selection.Find.Execute
Selection.MoveLeft Unit:=wdCell
Selection.MoveDown Unit:=wdLine, Count:=2, Extend:=wdExtend
Selection.Rows.Delete
Wend
When you use a macro to find from the beginning to the end of a document
(with a loop), and when you reach the end of the document, how do you tell
Word NOT to ask if I want to find from beginning of the document ?
Many thanks,
Céline
With Selection.Find
.Text = "xxx"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
End With
While Selection.Find.Execute
Selection.MoveLeft Unit:=wdCell
Selection.MoveDown Unit:=wdLine, Count:=2, Extend:=wdExtend
Selection.Rows.Delete
Wend