Damo was telling us:
Damo nous racontait que :
> Word 2003 Macro question:
> I have 14 x 320 page word documents (School subject reports) created
[quoted text clipped - 11 lines]
> missing teacher name (many different teacher names).
> Can anybody help with this?
Try something like the following. You will need to find a way to determine
the exact string you need to search for when there are no teacher names
(strSearch).
'_______________________________________
Dim strSearch As String
Dim rgeStart As Range
Set rgeStart = Selection.Range
strSearch = "Subject Teacher :" & Chr(13)
With ActiveDocument.Range.Find
.Text = strSearch
Do While .Execute
With .Parent
.Select
With Selection
.Bookmarks("\Page").Range.Delete
.Characters(1).Delete
End With
End With
Loop
End With
rgeStart.Select
Application.Browser.Target = wdBrowsePage
'_______________________________________

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Damo - 19 Jun 2007 09:00 GMT
Jean-Guy
Absolutely Brilliant. Your coding worked instantly with no modifications
necessary.
Thankyou very much.
Damo
> Damo was telling us:
> Damo nous racontait que :
[quoted text clipped - 44 lines]
> Application.Browser.Target = wdBrowsePage
> '_______________________________________