Insert Checkboxes that I can actually check/uncheck

J

Jose Rojo

Is there any way I can insert checkboxes in a document that
I can easily toogle between check/uncheck/grayed out ???

Thanks
 
G

Greg Maxey

Jose,



Open a blank word document.

Open the organizer. (Format>Style>Organizer Word2000)/Tools>Templates and
Addins>Organizer Word 2002)

You will see two windows side by side. One is normal.dot, the other is the
blank document. Click the button "close file" under the blank document.

Click the Open file button.

You want to browse and find the Contemporary Fax Template. When you have
this file open, click the AutoText tab and copy the checked box and
unchecked box to the normal template.

Close the organizer.



Now you have two Autotext entries in your normal.dot file for entering a
checked and an unchecked box. Use Insert>Autotext and insert a checked box
and an unchecked box. You want to be able to toggle them back and forth.
For that you need two macros. Right click the checked box and select Toggle
Field Codes. You will see it is actually a Word field code for a
macrobutton pointing to the uncheckit macro. The unchecked box macrobutton
points to a checkit macro. Here are the two macros:



Sub CheckIt()

ActiveDocument.AttachedTemplate.AutoTextEntries("Checked Box").Insert
Where:=Selection.Range

End Sub



Sub UncheckIt()

ActiveDocument.AttachedTemplate.AutoTextEntries("Unchecked Box").Insert
Where:=Selection.Range

End Sub



See the following link if you need help inserting macros:

http://www.mvps.org/word/FAQs/MacrosVBA/CreateAMacro.htm



--
\\\\///////////
( @ @ )
----oo00---(_)---00oo----
Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
 
S

Suzanne S. Barnhill

You could just copy the CheckIt and UncheckIt macros from the fax template
as well.

But I don't see how this solution is going to provide "grayed out" check
boxes.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top