• Hiding a command button in Word2000

    Author
    Topic
    #352921

    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?

    Viewing 2 reply threads
    Author
    Replies
    • #514684

      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

    • #514692

      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.

      • #514694

        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.

    • #514798

      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

    Viewing 2 reply threads
    Reply To: Hiding a command button in Word2000

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: