Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Feb 2001
    Location
    Toronto, Ontario, Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Avoid printing a Command Button (Word 2000)

    There's a button on page 3 of my form template that is used to make optional changes. The form is protected, of course, so I can't see a better way to give the user the ability to alter the form.
    But I don't want the button to print. Unlike Excel, it is not possible in Word to set the properties of the object, in this case a Command Button, to not print.
    So I have a Document_New procedure to set "Options.PrintDrawingObjects = False".
    This is fine. When the user opens a new document based on the template, the procedure fires properly.
    As well, there is a Document_Close procedure to turn the option back on again (for other documents)
    But when the document is saved, the Document_New code is not saved with it, so that when it is re-opened, the option remains on, and the button will print.
    Any ideas out there?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Avoid printing a Command Button (Word 2000)

    Aslo put the code in the Document_Open event.

  3. #3
    Lounger
    Join Date
    Feb 2001
    Location
    Toronto, Ontario, Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Avoid printing a Command Button (Word 2000)

    Hans,
    As always, spot on. I had some other code in the Document_Open event, but setting not print for Drawing Objects was not.
    Thanks again

Posting Permissions

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