PDA

View Full Version : deleting contents of a document section



jat098
10-02-2012, 05:47 PM
Is there a way to programmatically delete the contents (text and graphics) of a document section, e.g., ThisDocument.Sections(2)? I've tried, but I cannot find the right syntax for this.

Thanks in advance for any help.

fumei
10-02-2012, 07:19 PM
ActiveDocument.Sections(2).Range.Delete

Be warned that if there are headers and footers involved there could be unforseen conswquences.

jiggly
05-15-2013, 12:29 PM
is there a way to delete every instance of a page that has certain text in section 2?

i.e. delete all pages in section 2 that contain "intentionally left blank"

jiggly
05-16-2013, 04:12 AM
I need to such software as if my data will be deleted. easily i can recover that.

What does this mean?

fumei
05-16-2013, 01:11 PM
Ummmm, that does not appear to be in this thread.