• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 623
  • Last Modified:

Using VBA how can you hide a control checkbox in word?

Using VBA how can you hide a control checkbox in word?  I cannot use the formfields checkbox as I need the on click event.
0
kriskyk
Asked:
kriskyk
1 Solution
 
GrahamSkanCommented:
If it is formatted as a Shape, i.e. not Inline, you can use this VBA code
Sub HideCheckBox1()
CheckBox1.Left = -100
End Sub

Open in new window

0
 
irudykCommented:
Another option you could try and use, regardless of of how the checkbox is formatted, is to set the Height and Width property to the lowest accepted value of 0.75
So, try the following code:

Sub HideCheckBox()
     'Change CheckBox1 to the name of the checkbox object
     ThisDocument.CheckBox1.Height = 0.75
     ThisDocument.CheckBox1.Width = 0.75
End Sub

Open in new window

0
 
kriskykAuthor Commented:
Thanks!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now