Solved

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

Posted on 2009-04-01
3
555 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
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.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

808 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