![]() |
#10
|
||||
|
||||
![]()
If you're using checkboxes, you don't need either custom document properties or DOCPROPERTY fields, though they can still be used. For example, instead of using either custom document properties or DOCPROPERTY fields, you could use
{INCLUDETEXT "{FILENAME \p }/../Text1.docx" "Check{IF{REF Check1}= TRUE 2 1}"} Using checkboxes does required a macro but, given you document is using formfields, you could use dropdown formfields for the same purpose and that would not require a macro. Quote:
{INCLUDETEXT "{FILENAME \p }/../Text1.docx" "Check1{IF{REF Check1}= TRUE 2 1}"} {INCLUDETEXT "{FILENAME \p }/../Text1.docx" "Check2{IF{REF Check2}= TRUE 2 1}"} {INCLUDETEXT "{FILENAME \p }/../Text1.docx" "Check3{IF{REF Check3}= TRUE 2 1}"} (Note the additional number in the bookmarks to cater for the additional checkboxes; you could just as easily use letters or something else - you could even replace the outer 'Check1', 'Check2', etc with meaningful names). The important thing to remember is that you need two bookmarks per checkbox - one for whatever is to be output for the True value and one for the False value, even if one of those is empty. You can even add more logic for what happens if two particular checkbox values are true, for example. [quote]I can find "toggle field codes" but not "toggle bookmark references". The toggling referred to consisted of changing the value between 1 & 2 (though you could use 0 & 1 to 'equate' to False & True); this has nothing to do with toggling the field code display. Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mortcr | Word VBA | 1 | 10-22-2013 02:02 PM |
![]() |
DBrooks | Word | 1 | 02-16-2013 01:32 PM |
![]() |
David C | Word | 1 | 10-24-2012 04:53 AM |
![]() |
kellyjb27 | Word | 1 | 05-26-2012 11:08 AM |
![]() |
LAssist2011 | Word | 5 | 12-14-2011 03:02 PM |