Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

708 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

12 Experts available now in Live!

Get 1:1 Help Now