RE: prevent to show part of document by david
david
Tue May 22 09:15:01 CDT 2007
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
--
Windows XP, Word 2000
"Peter KNAP" wrote:
> 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):
>
> > 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
> > --
> > Windows XP, Word 2000
> >
> >
> > "Peter KNAP" wrote:
> >
> > > 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
> > >