Hi!
This is perhaps a stupid question, but I wonder if there's a way to check if I am at the end of the document? I thought EOF would work, but it didn't work for me...
I was thinking of somthing like this:
Pål Nesteby
PDC-Tangen
Norway
This is perhaps a stupid question, but I wonder if there's a way to check if I am at the end of the document? I thought EOF would work, but it didn't work for me...
I was thinking of somthing like this:
Code:
While Not Selection.Style = "someStyleName" or not <endofdocument>
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdMove
Wend
Pål Nesteby
PDC-Tangen
Norway