![]() |
#1
|
|||
|
|||
![]() I have a single document with all the info, I want to create a Form (with checkbox) on top of it where Users can select what data they want to assemble in the word document. How can it be done? Are there any 3rd party tools that can do that? |
#2
|
||||
|
||||
![]()
Hi vishal,
There are various ways of doing this, requiring the use of either a userform of a series of formfields to determine what gets output. Userforms have the advantage of not being part of the actual document - they simply sit over it to provide an interface for whatever is being done to the document beneath. Form fields sit in the actual document, but can be put on a single page that perhaps doesn't get printed (or can be printed to confirm what choices were made). As a rule, it's unsafe to simply delete 'unwanted' text as there's then no way of restoring it if the user changes their mind. Accordingly, it's preferable to either: 1. store the variable text in the macro itself, and update bookmarks in the document with/without the text; or 2. store the variable text in fields within the document, then toggle their output on/off via edits to custom document properties. Clearly, there are some design issues you'll need to think about before you can go much further.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
I have created the Form and is working great.
I am at a point where I want to delete stuff based on the form selection. I have the following structure: 1. Collect IIS text, text,text, text,text, text,text, text,text, text, text, text,text, text,text, text, 2. Collect Apache text, text,text, text,text, text,text, text,text, text, text, text,text, text,text, text, If the User Select Apache - I want to delete IIS Section - Please let me know if this can be done |
#4
|
||||
|
||||
![]()
Hi vishal,
Are you proposing to simple delete the text with no means of recovery? Is the 'form' a userform, or a series of formfields? Are the ranges you might want to delete bookmarked? If not how do you propose they be identified?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
***Are you proposing to simple delete the text with no means of recovery?
Well it is going to be a template, which has 100 pages. Based on User selection I will delete 80 Pages and they can save the document under another name. ***Is the 'form' a userform, or a series of formfields? Yes, it is User Form. ***Are the ranges you might want to delete bookmarked? If not how do you propose they be identified? Thats where I am stuck - not sure how I can do that. How do I bookmark a Section/paragraph. And delete/keep based on the user input. |
#6
|
||||
|
||||
![]() Quote:
Attached is a simple demo. The text in red has been bookmarked. Clicking on the checkbox on the formfield deletes that range.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
PatrickYork | Word | 3 | 04-03-2015 11:19 PM |
Look up an array based on user input | johnsmb | Excel | 2 | 01-07-2011 01:12 PM |
![]() |
freschij | Word | 1 | 06-11-2010 12:35 PM |
Is there a way to do this? (automatically enter text based on form data) | TIKKI555 | Word | 0 | 05-26-2010 09:21 AM |
![]() |
avaintcon | Word | 1 | 09-02-2009 05:02 PM |