Using one WORD document for different audiences

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Using one WORD document for different audiences

Post by ErikJan »

I have a WORD document that contains information and "more detailed" information. The first part should be available to a larger audience, the more details comments about each topic only to a smaller group.
I do think it's most easy to work with one document only.
The only way I think this can be done is to use hidden text. It's cumbersome but I believe it's workable.
The problem I have is that I share the two versions as PDF. Seems that where I can select "Hidden" in the Print options, that feature is not available in the "Export" options. And to create my PDF (/A) exported files (with ToC links embedded) I do use export. Am I missing that?

Yes, I know I can "Print to PDF" but that doesn't create PDF/A files, nor a result with embedded ToC links (the latter I'm not 100% sure about)

User avatar
ChrisGreaves
PlutoniumLounger
Posts: 15631
Joined: 24 Jan 2010, 23:23
Location: brings.slot.perky

Re: Using one WORD document for different audiences

Post by ChrisGreaves »

ErikJan wrote:
05 Apr 2024, 17:52
I have a WORD document that contains information and "more detailed" information. The first part should be available to a larger audience, the more details comments about each topic only to a smaller group.
Hi ErikJan.
I think that your "PDF" is a bit of a red herring. Swimming upstream (grin) I suspect the answer should lie in the preparation of the MSWord document regardless of the target.
{INCLUDETEXT} field brings in text from other (document) files
{LINK} field brings in part of a file (OLE; I'm using Word2003)
{REF} field brinhs in bookmarked text
There may be more or better fields.

My initial thought is to surround each such field with an {IF} field in your document.
But I think too you could use an {IF} in each of the source documents.

I am not the resident { field } expert.
Cheers, Chris
There's nothing heavier than an empty water bottle

snb
4StarLounger
Posts: 580
Joined: 14 Nov 2012, 16:06

Re: Using one WORD document for different audiences

Post by snb »

How to discriminate between 'larger audience' and 'smaller group' ?

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

snb wrote:
06 Apr 2024, 12:29
How to discriminate between 'larger audience' and 'smaller group' ?
I can do that manually if needed.

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

ChrisGreaves wrote:
05 Apr 2024, 20:23
ErikJan wrote:
05 Apr 2024, 17:52
I have a WORD document that contains information and "more detailed" information. The first part should be available to a larger audience, the more details comments about each topic only to a smaller group.
Hi ErikJan.
I think that your "PDF" is a bit of a red herring. Swimming upstream (grin) I suspect the answer should lie in the preparation of the MSWord document regardless of the target.
{INCLUDETEXT} field brings in text from other (document) files
{LINK} field brings in part of a file (OLE; I'm using Word2003)
{REF} field brinhs in bookmarked text
There may be more or better fields.

My initial thought is to surround each such field with an {IF} field in your document.
But I think too you could use an {IF} in each of the source documents.

I am not the resident { field } expert.
Cheers, Chris
Interesting thoughts, thanks.
I'd like as the 'advanced' text is an extension of the simple text, the document is best maintained as one file I think. I do see paragraphs / sections with simple text followed by more detailed paragraphs for the advanced / support group.
So I can use an {ASK} field and ask if the advanced version should be displayed or not, then I could text a variable with an {IF} field. But it seems I can't hide text like that so I guess the whole advance section should be in the {IF} field itself?
What about creating some VBA code that finds a start- and end-markers I add to the text to mark advanced sections and then hides or unhides the text between these markers.
Seems pretty straightforward. I should find out how to create a marker that is visible but that doesn't mess up formatting and would also not print.
More thoughts and suggestions?

User avatar
StuartR
Administrator
Posts: 12610
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Using one WORD document for different audiences

Post by StuartR »

How about using a different style for the advanced text and modifying that style to be hidden
StuartR


snb
4StarLounger
Posts: 580
Joined: 14 Nov 2012, 16:06

Re: Using one WORD document for different audiences

Post by snb »

Sample file ?

User avatar
Jay Freedman
Microsoft MVP
Posts: 1318
Joined: 24 May 2013, 15:33
Location: Warminster, PA

Re: Using one WORD document for different audiences

Post by Jay Freedman »

StuartR wrote:
07 Apr 2024, 15:11
How about using a different style for the advanced text and modifying that style to be hidden
Exactly correct. You can install the following macro and add a button for it to the Quick Access Toolbar to toggle the advanced text off and on.

Code: Select all

Sub ToggleAdvancedText()
    Dim strStyleName As String
    strStyleName = "Advanced"  ' change this as needed
    
    With ActiveDocument.Styles(strStyleName).Font
        .Hidden = Not .Hidden
    End With
End Sub

snb
4StarLounger
Posts: 580
Joined: 14 Nov 2012, 16:06

Re: Using one WORD document for different audiences

Post by snb »

See attachment.
You do not have the required permissions to view the files attached to this post.

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

I looked at the code in the Word doc that was posted by "snb". It's confusing as it shows (or hides) the contents of a variable called "snb", but that contents is also "snb".
Using this, I should 'fill' the variable 'snb' with my advanced text and I'm not sure if I could use formatted text for that.

Jumping back to the styles approach, I need to play around with that one a bit to see if and how that might function.

In any case, thanks to both of you for the suggestions so far. Appreciated!

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

OK, thinking about the Style approach. I see that I do need "something" that I can use to mark sections that I want to hide or show later.
Such a 'marker' however should be just that: a marker. That would mean that when I apply a Style to mark parts of my document, that Style should NOT alter the representation of the text / paragraphs it is applied to. In my mind that would mean that the style is 'empty'.
But I see no way to do that... any suggestions?

snb
4StarLounger
Posts: 580
Joined: 14 Nov 2012, 16:06

Re: Using one WORD document for different audiences

Post by snb »

You can format any text within an {If } field without any restrictions.
You do not have the required permissions to view the files attached to this post.

User avatar
StuartR
Administrator
Posts: 12610
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Using one WORD document for different audiences

Post by StuartR »

ErikJan wrote:
09 Apr 2024, 18:56
OK, thinking about the Style approach. I see that I do need "something" that I can use to mark sections that I want to hide or show later.
Such a 'marker' however should be just that: a marker. That would mean that when I apply a Style to mark parts of my document, that Style should NOT alter the representation of the text / paragraphs it is applied to. In my mind that would mean that the style is 'empty'.
But I see no way to do that... any suggestions?
You can create a character style, based on "Default Paragraph Font" and toggle the hidden status of this style with a Macro
StuartR


User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

StuartR wrote:
09 Apr 2024, 21:02
You can create a character style, based on "Default Paragraph Font" and toggle the hidden status of this style with a Macro
But that still has a "Default Paragraph Font" defined... and as such, when I apply it, it will change fonts if they differ from that default...

User avatar
ErikJan
BronzeLounger
Posts: 1249
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Using one WORD document for different audiences

Post by ErikJan »

snb wrote:
09 Apr 2024, 19:25
You can format any text within an {If } field without any restrictions.
I'm beginning to see the benefits here now... thank you. Let me play around a bit with this thought and do some tests...

User avatar
StuartR
Administrator
Posts: 12610
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Using one WORD document for different audiences

Post by StuartR »

ErikJan wrote:
10 Apr 2024, 08:32
But that still has a "Default Paragraph Font" defined... and as such, when I apply it, it will change fonts if they differ from that default...
"Default paragraph font" means use the default font for the current paragraph. If your text is currently in style Heading 1, then it will retain the Heading 1 font style, if it is in style Normal then it will retain the Normal font style. This might cause a problem if you are formatting text manually, but if you use styles for all your formatting then it will work well.
StuartR


snb
4StarLounger
Posts: 580
Joined: 14 Nov 2012, 16:06

Re: Using one WORD document for different audiences

Post by snb »

As far as I can see the font 'Hidden' property only takes into effect when printing not in the UI.

User avatar
StuartR
Administrator
Posts: 12610
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Using one WORD document for different audiences

Post by StuartR »

snb wrote:
10 Apr 2024, 09:50
As far as I can see the font 'Hidden' property only takes into effect when printing not in the UI.
It works the way that I expect. If hidden text is displayed then I see it on screen but not in print, otherwise it is not visible in either. It's easy to check by toggling the Show/Hide pilcrow in the paragraph section of the ribbon.
StuartR


User avatar
Charles Kenyon
5StarLounger
Posts: 619
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Using one WORD document for different audiences

Post by Charles Kenyon »

ErikJan wrote:
10 Apr 2024, 08:32
StuartR wrote:
09 Apr 2024, 21:02
You can create a character style, based on "Default Paragraph Font" and toggle the hidden status of this style with a Macro
But that still has a "Default Paragraph Font" defined... and as such, when I apply it, it will change fonts if they differ from that default...
Have your underlying text be in a paragraph style that uses the formatting you want. Do not use direct formatting or other character styles to format this text.

User avatar
Charles Kenyon
5StarLounger
Posts: 619
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Using one WORD document for different audiences

Post by Charles Kenyon »

Also, consider using Building Blocks / Quick Parts / AutoText and Building Blocks Gallery Content Controls.
https://www.addbalance.com/usersguide/a ... entControl

If you alter the QAT, that alteration can (and should) be saved in your document or template, rather than in Word as a whole. If you use a custom building blocks gallery, you can put that gallery on the QAT as well.
https://addbalance.com/word/QATmodifica ... #PageStart
http://gregmaxey.com/word_tip_pages/bui ... eries.html