Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2013, 07:41 AM
cheffx1265 cheffx1265 is offline Document properties driving sections in template Windows 7 64bit Document properties driving sections in template Office 2013
Novice
Document properties driving sections in template
 
Join Date: Apr 2013
Posts: 1
cheffx1265 is on a distinguished road
Default Document properties driving sections in template

Is there a way to have sections display/hide based on a boolean or text field in the document properties?

I have been able to use the ImportFragment function to take a couple of templates and import them but i'm not getting the results that are desired.



Ok that was kind of a high level and vague description of what i am looking for. More details:

I have a SharePoint workflow that allows users to select what sections they want in a template. After they click check boxes for a "Clarifications and Conditions" section or certain appendices, those results are promoted to the Word documents server properties. From there, i am hoping to either construct the template based on the users responses and a function like ImportFragment or use some type of VBA to hide sections if the check box was not selected.

Is this possible and am i going about it the wrong way?

Thanks in advance and let me know if any more details would help clarify the scenario.
Reply With Quote
  #2  
Old 04-05-2013, 05:25 AM
macropod's Avatar
macropod macropod is offline Document properties driving sections in template Windows 7 64bit Document properties driving sections in template Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use an IF field to conditionally display content based on a DOCPROPERTY value. For example:
{IF{DOCPROPERTY MyProp}= 1 "Some content" "Some other content"}
However, that content remains within the field unless you unlink it (which you could do with a macro). You should also consider using custom Quick Parts instead of DOCPROPERTY fields and the like.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
document properties, sharepoint 2010, word 2010

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Document properties driving sections in template Code to Create & Format Document Sections sleake Word 6 04-26-2012 04:14 AM
Document properties driving sections in template Add custom document properties into document NicBodkin Word 8 05-05-2011 09:09 AM
Printing Sections of a Word Document Andy Jenkinson Word 4 02-12-2010 02:53 AM
Document with selective sections printing krismason Word 0 07-09-2009 03:30 AM
document properties issues charris1980 Word 0 04-29-2009 12:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft