Discussion:
Limit number of check boxes used in table
(too old to reply)
Still learning@work
2010-02-26 18:00:01 UTC
Permalink
I want to limit the choices of check boxes in a cell to only 1 choice. A
Drop-down box is NOT an option. How can it be formatted to allow a user to
click on only one box among the choices.

Example: red, blue, yellow, black white. I want the user to choose only one.
Doug Robbins - Word MVP
2010-02-26 20:51:27 UTC
Permalink
See the article "Making groups of Check Box Form Fields mutually exclusive
(so that they behave like radio buttons)” at:

http://www.word.mvps.org/FAQs/TblsFldsFms/ExclusiveFmFldChbxs.htm

Instead of a Frame as is suggested in that article, you can have the
checkboxes in any .Range object, such as a table cell and then in place of
the following line of code

For Each oField In Selection.Frames(1).Range.FormFields

you would use:

For Each oField In Selection.Cells(1).Range.FormFields

Or if you had each check box in a separate cell in the one row of a table,
you would use:

For Each oField In Selection.Rows(1).Range.FormFields
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Post by Still ***@work
I want to limit the choices of check boxes in a cell to only 1 choice. A
Drop-down box is NOT an option. How can it be formatted to allow a user to
click on only one box among the choices.
Example: red, blue, yellow, black white. I want the user to choose only one.
Loading...