• VBA determine if text box selected

    Author
    Topic
    #476539

    I would like to know if a user clicks on a text box in my document. Is there any code that would capture this? My reason is I do not want any user to be able to edit text in a text box, so I’ll redirect them to a bookmark.

    Thanks,
    Allan Bach

    Viewing 0 reply threads
    Author
    Replies
    • #1278965

      Hi Allan,

      You may be able to define a class event fo this, but that’s a fairly complex process. A simpler solution might be to place a transparent shape over it and use Word’s drawing tools to group them together. That makes it fairly difficult to access or edit the text.

      Cheers,
      Paul Edstein
      [Fmr MS MVP - Word]

      • #1279124

        Rethinking the approach a little for Word 2007+, if you made it a content control, had a content control in the text box, or used a Text box that already had a content control in it, you could use the Document’s ContentControlOnEnter event.

    Viewing 0 reply threads
    Reply To: Reply #1279124 in VBA determine if text box selected

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

    Your information:




    Cancel