Results 1 to 6 of 6
  1. #1
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Suppress Printing of a Section (2000)

    I'm creating a template for use by novices. The second section of the template has reference information in it and doesn't need to be printed out. I want to suppress printing of this section.
    Any suggestions?

    TIA
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Suppress Printing of a Section (2000)

    Does it only have two sections? You could override FilePrint and FilePrintDefault with macros that specifies a range of "pages" consisting of s1 (entire section 1). It's something they should learn anyway. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

  3. #3
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Suppress Printing of a Section (2000)

    Yes - only two sections. I have to admit that it has been so long since I've done something like this I've forgotten how to override the standard commands. I think last time i ducked and just added a custom toolbar to the template.
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Suppress Printing of a Section (2000)

    Word's so convenient this way. If you create

    Sub FilePrint()

    End Sub

    and

    Sub FilePrintDefault()

    End Sub

    in your template, it will intercept toolbar and menu calls to those built-in functions.

    Now, you need to manipulate the properties of the file print dialog (in the first case) or set the parameters of the ActiveDocument.PrintOut method (in the second). That will require a journey to the help files. Once you have the wdconstant for the print dialog, search here and VBA for examples.

  5. #5
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    339
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Suppress Printing of a Section (2000)

    Hi,

    Another option would be to format the text as hidden text - you will see it on the screen but it wont print out.

  6. #6
    Super Moderator WebGenii's Avatar
    Join Date
    Jan 2001
    Location
    Redcliff, Alberta, Canada
    Posts
    4,066
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Re: Suppress Printing of a Section (2000)

    The wdconstant for the print dialog) I had - I'd just forgot I could use Sub FilePrint

    tks
    [b]Catharine Richardson (WebGenii)
    WebGenii Home Page
    Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •