Append active form document with checkbox

D

DeputySmith770

Hello everyone.

My office is currently creating and testing forms in Word for report
writing. One task I am not sure how to complete in Word forms using
VBA is to append the active document, and cause Word to open another
file within the active document as a new page.

In summary: User clicks on checkbox for "Property Page" on the main
forms page, thereby indicating the user needs to fill out a property
page for the case. By clicking on the checkbox, Word inserts a page
break at the end of the last page of the main forms document, and
places the Property Page document within the main forms page.

Can a checkbox be coded to insert page break, open and append a
document, and then be re-protected as a form?

I can post/email/send example forms if needed.

Thanks for all the help.

DeputySmith770[at]gmail[dot]com
 
D

Doug Robbins - Word MVP

You could have a macro run on exit from the Checkbox formfield to evaluate
the value of the Checkbox and insert a file containing the property page at
the end of the document if it was relevant.

See the following series of articles

Please Fill Out This Form
Part 1: Create professional looking forms in Word
http://www.computorcompanion.com/LPMArticle.asp?ID=22

Part 2: Adding Automation to your Word forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=46

Part 3: Learn more VBA (macros) to automate your forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=119

Part 4: Use custom dialog boxes in your Word forms
http://www.computorcompanion.com/LPMArticle.asp?ID=127

Part 5: Connect your AutoForm to a database to save input time and keep
better records!
http://www.computorcompanion.com/LPMArticle.asp?ID=136


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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