Solved

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

Posted on 2009-04-01
3
534 Views
Last Modified: 2012-05-06
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
Comment
Question by:kriskyk
3 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24047675
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
 
LVL 23

Accepted Solution

by:
irudyk earned 250 total points
ID: 24048906
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
 

Author Closing Comment

by:kriskyk
ID: 31565647
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now