#1
|
|||
|
|||
Conditionally show pages without using VBA
Hi All, I would like to show or hide pages of a document based on selections that are made on the first page (checkboxes). I saw many related threads on the site using VBA, but I'm curious if it can somehow be done without VBA... My company and its clients are hesitant to use any document with Macros due to ransomware, even if it is digitially signed... |
#2
|
||||
|
||||
Not practical without VBA.
In any event, conditional content of that kind should be stored in the document template as Building Blocks (Quick Parts) and, if the macros are also added to the document template, they don't need to be in the document itself and the document can be saved in the macro-free format (i.e. docx).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
It is possible to do without VBA but I wouldn't recommend it as it is quite obscure and requires you to update fields .
I've attached a demonstration file that shows how it can be done with a mapped content control and a nested If field which draws its test from the value of the document property the CC maps to. To experiment with this file, change the value of the checkbox and select all then press F9 to update the fields. The nested field follows the pattern of {IF {DocProperty x}="true" "Value if true" "Value if false"}
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
show or hide layers in all pages | ivano | Visio | 4 | 12-04-2018 07:10 AM |
Show same footnote on multiple pages | Cosmo | Word | 1 | 01-04-2016 12:07 AM |
Header must toggle text & color + show count of conditionally formatted cells below | Franktoon | Excel | 3 | 02-18-2014 02:10 PM |
How To Show Number of Pages in Word 2007 | CGM3 | Word | 2 | 07-21-2013 08:17 PM |
I have a Word 2007 document that only show 13 pages | xeonix | Word | 0 | 07-06-2009 08:38 PM |