prevent to show part of document

P

Peter KNAP

Could I prevent from showing part of open document?
I try to solve one problem and one of possible sollution could be show just
two pages of three.
Gives Word or VBA som possibilities?
Peter KNAP
 
B

Bear

Peter:

Content can be deleted or added programatically. You can also use the Hidden
property of fonts to hide almost anything, either manually or programatically.

You can identify which material to show or hide by isolating it in a
section, or by applying specific paragraph or character styles to identify
the material.

Bear
 
P

Peter KNAP

thank you.
nice to know . but how.
could you write some example?
i have document divided into five sections. and I need to hide section 1,2
and 4,5.
peter


„Bear" napísal (napísala):
 
B

Bear

Peter:

It is easier to start with all sections hidden, then unhide section 3. So in
your template, add the sections, select the whole document, and hide it.

Edit > Select All
Format > Font > Hidden (click until the check is black)

Create a new document.

The code (located in your template) to show section 3 would be:

ActiveDocument.Sections(3).Range.Font.Hidden = False

Bear
 

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