Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting a toggling checkbox on a Word document

Status
Not open for further replies.

davidbjr

Programmer
Jan 21, 2003
1
US
My users have a Word XP fax template that has a checkbox to indicate if the original will be sent by mail. They want to be able to click on this check box and change whether it is checked or unchecked. I think a macrobutton is the way to do this, but I can't find much documentation on how this.

TIA!
david
 
I tried adding a checkbox from the Control Toolbox (Visual Basic toolbar) and turned off design mode and the checkbox automatically allows you to check or uncheck it.

In order to ascertain the status of the checkbox (checked/unchecked) you could use a macro. I added a button (again from the Control Toolbox of the Visual Basic toolbar) and placed the following code inside, which illustrates how to check the status of the checkbox.
Code:
  If CheckBox1.Value = True Then 'checked
    MsgBox "Checkbox is checked"
  Else 'unchecked
    MsgBox "Checkbox is unchecked"
  End If

Hope this helps!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top