Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Feb 2001
    Location
    Washington, District Of Columbia, USA
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hiding a command button in Word2000

    I have a command button in a Word 2000 form (added from the Forms Toolbar) for the user to click on to do lots of things at once. However, I do not want the button to print and am willing to have it hidden with just the cursor changing shape when passing over it. I have tried ActiveDocument.InlineShapes without any success except that the button seems to be an InlineShapeEmbeddedOLEObject. Anyone know how I can hide the button or work around the problem?

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Hiding a command button in Word2000

    Do you mean the command button on the Control Toolbox toolbar?

    One strategy would be to create your own macros to intercept the print commands that are available to the user in this document/template.

    You could add a statement that sets the command button's visible state.

    There doesn't appear to be a Visible property for these kinds of command buttons, but there are height and width properties (as well as Back Color) - you could capture these into variables, temporarily set the height and width to "1.3" (appears to be the smallest setting Word will accept for these - weird) (and set the Back Color to white), do the Print, and then reset height and width (and back color) according to what was stored in the variables.

    A bit of trouble to go to but it might permit printing without the button being visible.

    Gary

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    Massachusetts
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hiding a command button in Word2000

    This method should hide the button

    Select the button.
    Select Format- Font and check Hidden Text.
    In the Tools - Options - Print menu make sure that Hidden Text is not selected.

    The button should now display, but not print.

  4. #4
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hiding a command button in Word2000

    James,

    Just to clarify that.

    I suspect that by "select the button", you don't mean just clicking on it- you need to select an area in the document which includes the button.
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  5. #5
    New Lounger
    Join Date
    Feb 2001
    Location
    Washington, District Of Columbia, USA
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Hiding a command button in Word2000

    Thanks for all for their help. I should have been clearer about what I was doing. I am using a but-ton embedded in the text of the document that is a

Posting Permissions

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