Using VBA in Word.
In several situations I have tried to setup error handling only to find that the handler only works the first time. For example:
Selection.MoveDown Unit:=wdParagraph, Count:=3
On Error GoTo DONOTDELETE
If Selection.Paragraphs(1).Range.Characters.Count < 2 Then
Selection.Paragraphs(1).Range.Delete
End If
DONOTDELETE:
In the above, I found myself in an empty table cell, so it will not delete. I setup an error handler to move past that if/then. It worked great the first time. However, when going to the next table and trying it again, I got the same error I did before I setup the error handler. How do I get the error handler to work every time?