Deleting document region between specific form fields

I

intell1

Please advice on how to perform the following:

I have two special form fields named BEGIN and END respectively. I would
like to delete the document portion contained between END and BEGIN. I am
using vc++.

TIA,
Nikolas
 
C

Cindy M -WordMVP-

Hi Intell1,
I have two special form fields named BEGIN and END respectively. I would
like to delete the document portion contained between END and BEGIN. I am
using vc++.
First thing you'd definitely need to do is to unprotect the document. Then,
I'd declare a RANGE variable and set it to the RESULT of the first form
field. Collapse it to its END point. Then change the END property to
correspond to the START property of the second field. Now delete the Range.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top