How to delete text in word doc based on user selection

C

CrazyKiwi

I'm trying to create a word template that will have a form appear at the
start and depending on what checkboxes are selected by the users the document
will delete certain paragraphs.
ie The Form asks the user to select which paragraphs to use and if they only
select 1, 2 & 3 then those will remain but all others will be deleted.

This is a 'once size fits all' Statement of Work document but only certain
sections are relavent depending on what the user selects.

I've got the form done, I just need to know how to acheieve this? I'm
thinking of selecting each paragraph somehow and then deleting it but I have
no clue how...Im pretty new to this.

Thanks
Pete
 
G

Graham Mayor

You could selectively format the paragraphs as hidden - or (possibly better)
*insert* the paragraphs as you need them rather than delete them. See
http://www.gmayor.com/SelectFile.htm for some ideas.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
F

Fumei2 via OfficeKB.com

An alternative is to have the relevant "chunks" - be they a single paragraph,
or multiple paragraphs, you decide - as bookmarks. Tie the bookmarks to
checkboxes on the userform. If it is checked, do nothing (the chunk stays).
If it is unchecked, delete the bookmark range (thus the "chunked" text).

Or the other way around, if it is checked, delete the bookmark. If it is
unchecked, keep it.

Personally, I go for the explicit check it / keep it logic.
 

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