making some parts visible/invisilbe (without hidden formatting)

E

Erwin Ahlers

Hello,
I'm looking for a solution to make some parts of a document invisible and
later again visible. But I cannot use the hidden formatting because hidden
text has to be visible in this mode.
I'm thinking if it is possible to put this range into a text field and
showing only the field heading. But the text that shall become invisilbe
contains also hidden text, tables, comments and may be footnotes. After
making this part visible again, it should be there as before.
Or do/can I copy this range to another document, which is then included
again and shown as icon?

Does anyone have a good idea?
Of course I would like to put this visible/invisible functionality inside a
macro function to have it as menu item or macrobutton.

Thanks
Erwin
 
J

Jonathan West

Hi Erwin,

There are two possible approaches I can think of.

One is for the text actually to be removed temporarily. I'd suggest that you
proceed as follows

1. copy the relevant text into an AutoText entry,
2. remove the text from the document
3. Where the text eas deleted, tnsert a bookmark with the same name as the
Autotext entry, so that you know where to put the text back later.


The other possibility is to use an IF field. You could have a custom
document property, perhaps called ShowHide, and then your conditional text
goes inside the IF field like this (The {} characters are field braces
inserted using Ctrl-F9

{ IF { DOCPROPERTY "ShowHide" } = "Hide" "" "Conditional text goes here" }

You can put as much conditional text as you want inside the final pair of
quotes. It can be formatted as well. Then it will display so long as you
don't set the value of the ShowHide document property to Hide.

Your macro would change the value of the document property and then update
the fields in the document.
 
O

Ol

All "hide in field" methods works fine with plain text. But not if hiding
part includes picture or inlineshape. Those methods unable to hide such
objects.
 
O

Ol

Id recomend to use two document model. One is original document and another
one is embeded word document to store hiden parts. "Copy" "paste" methods to
exchage information, bookmark hiden parts to search them in embeded document.
 
K

Klaus Linke

Not sure if your site mentions it:

If you have applied "hidden" as text fromatting, you can still change the
paragraph styles to "hidden" and hide everything.
If you change the paragraph style back to "not hidden", the stuff that was
hidden before stays hidden.
At least that's my experience... you might test a bit before using that method.

It doesn't work with "hidden" character styles, though. In that case, the
"hidden" attribute acts as a toggle. If you change the paragraph style to
hidden, the text marked in the "hidden" character style becomes visible.

Regards,
Klaus
 

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