Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

making some parts  visible/invisilbe (without hidden formatting)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erwin Ahlers - 04 Feb 2005 10:06 GMT
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
Jonathan West - 04 Feb 2005 10:31 GMT
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.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

> Hello,
> I'm looking for a solution to make some parts of a document invisible and
[quoted text clipped - 14 lines]
> Thanks
> Erwin
Greg Maxey - 04 Feb 2005 10:59 GMT
Erwin,

See:
http://gregmaxey.mvps.org/Toggle_Data_Display.htm

This explains Jonathan's DocVariables method (with pictures) :-) and
provideds a few other alternatives.
Signature

Greg Maxey/Word MVP
A Peer in Peer to Peer Support

> Hi Erwin,
>
[quoted text clipped - 41 lines]
>> Thanks
>> Erwin
Klaus Linke - 07 Feb 2005 16:27 GMT
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

> Erwin,
>
[quoted text clipped - 52 lines]
> >> Thanks
> >> Erwin
Ol - 04 Feb 2005 17:43 GMT
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.

> Hi Erwin,
>
[quoted text clipped - 40 lines]
> > Thanks
> > Erwin
Ol - 04 Feb 2005 17:59 GMT
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.

> Hello,
> I'm looking for a solution to make some parts of a document invisible and
[quoted text clipped - 13 lines]
> Thanks
> Erwin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.