Unable to delete first paragraph

B

Bruno G.

Hello!

I'm trying to delete the first paragraph in a document with
ActiveDocument.Paragraphs(1).Range.Delete but it doesn't work...
I tried with a new blank document with a couople of paragraphs and it works
there.

Anyone has an idea as to why it wouldn't work in my particular docuemnt?

When I start, the document has several sections with customized styles,
headers & footers, tables... I then proceed to delete several sections and
modify the header and footer. The last thing I need to do is delete the
first paragraph (which contains hidden text).
However, the Delete command does nothing, not even an error message...

Tanks in advance for your help!

Bruno G.
 
B

Bruno G.

Actually, after closing my file and reopenning it, it worked... Don't know
why.
But now I'll make sure that hidden text is visible before deleting it!

Thanks for helping!

Bruno
 
Top