Re: Option buttons not working
- From: "Stefan Blom" <StefanBlom@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Jun 2009 13:00:06 +0200
Well, you live and learn! Thank you, Graham!
I'm sure the OP will find this useful as well. :-)
FWIW, I did suspect that a macro would be the answer, but I failed to locate
the appropriate command. I looked at the FormFields.Add method and came up
with nothing.
--
Stefan Blom
Microsoft Word MVP
"Graham Mayor" <gmayor@xxxxxxxxxxxxxxxxxx> wrote in message
news:ulFoDJQ5JHA.1528@xxxxxxxxxxxxxxxxxxxxxxx
While the radio button may not be on the controls palette, you can still
insert radio buttons in Word 2007 documents.
The following macro will do that
Sub RadButton()
Selection.InlineShapes.AddOLEControl ClassType:="Forms.OptionButton.1"
End Sub
With the aid of macros, you can also get legacy check boxes to behave as
radio buttons
http://word.mvps.org/faqs/tblsfldsfms/ExclusiveFmFldChbxs.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Stefan Blom wrote:
I think you are right: the radio buttons are no longer supported in
Word 2007. I hadn't noticed this earlier.
In other words, it seems as if *I* am missing something here, not you!
So your quick fix might be the only choice, I'm afraid.
"Lisab" <Lisab@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:57962B5F-CD01-4CE0-A80C-04F633060891@xxxxxxxxxxxxxxxx
I'm sorry to keep bothering you but I don't see any other way to
prevent the
user from making multiple selections in sections where only one
choice is required.
If your not feed-up with me yet, can you Please tell me if word has
an option button control that is not ActiveX. Or, if there is a
control that simulates the option group that can be used in all
security level settings.
Maybe I'm missing something but I don't see the Option/radio button
control
in the group of Legacy controls that is not ActiveX. The only other
Option
control I found is a "Web" option control in the Customize/All
Commands area,
and I can not add that one to the form because it is disabled.
Thanks Again for your time and help. I really appreciate it:)
"Stefan Blom" wrote:
I already mentioned security settings in my previous reply. If you
can avoid
ActiveX controls, that would be the easiest solution.
--
Stefan Blom
Microsoft Word MVP
"Lisab" <Lisab@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1F0BDE57-D9B3-452B-B5EC-FC30FF4D8017@xxxxxxxxxxxxxxxx
I figured out what was happening. Why the option groups were
working for some
people and not for others.
"SECURITY LEVEL SETTINGS"
The form works fine for users whose word security level setting is:
-Word 2003 users - "Medium" or "Low"
-Word 2007 users - "Disable with macros w/ Notification" or
"Enable all
macros"
**The same issue happens if you create the form using Word 2003.
Adding
option buttons cause the same problem. My guess is the
behind-the-scene
workings that make the option groups work, is treated like macros.
**Also my legacy tool bar in Word 2007 does not have the option
button control. In looking at 'All Commands" in the Customize
Window, the only
two
Option buttons controls are "ActiveX" and "Web"
The quick fix solution for now is having two versions of the form,
one with
option groups, and the other with all check boxes.
"Stefan Blom" wrote:
No, you can create your buttons in Word 2007. You will find the
available
commands in the Controls group of the Developer tab. Use the
Legacy Tools
button to insert the old form fields of Word 97-2003. Avoid the
ActiveX
controls (also found by clicking the Legacy Tools button).
To display the Developer tab, choose that option in Office button
| Word
Options, Popular category.
--
Stefan Blom
Microsoft Word MVP
"Lisab" <Lisab@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F14DF864-C555-4FB1-842F-03E48ABC1FD4@xxxxxxxxxxxxxxxx
Thank You, Are all option buttons always ActiveX. If not where
are the
Word
Option buttons (what tool bar). Do I have to create the form in
Word
2003?
"Stefan Blom" wrote:
What you are describing is likely to happen if you have inserted
ActiveX
controls. As a security measure, Word will then start in Design
mode.
Be
sure to use only legacy form fields or content controls.
--
Stefan Blom
Microsoft Word MVP
"Lisab" <Lisab@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3DBB4908-C33C-4E4F-8143-8CE3E4BA7DE1@xxxxxxxxxxxxxxxx
Check boxes and data fields work but user unable to select
option buttons
I created a form with option groups. It works perfectly for
users
that
have
Word 2007. However it the form is opened in Word 2003, the
check boxes
and
data fields work but the user is not able to select from the
option
group.
If an option button is double clicked, the vba code window
opens -
eventhough the form is in protected mode.
The "Editing Restrictions" is set to Allow "Filling in forms"
Also - While working with the form in Windows 2003 -
1. If I goto TOOLS --> UNPROTECT DOCUMENT ... the "Start
Enforcing
Protection" button is disabled
2. I have to click the "Design Mode" icon to enable the "Start
Enforcing
Protection" button
3. Then, when I click the "Start Enforcing Protection" button
... (I
don't
enter a password) Everything works perfectly, including the
option
buttons.
4. However, if I Save and Close the form then reopen it, The
option
buttons
don't work again. I have to repeat 1,2,& 3 if I want to change
an
option.
Can Someone Please tell me how to solve this problem.
**Same thing happens if I create the option groups using Word
2003**
.
- Follow-Ups:
- Re: Option buttons not working
- From: Graham Mayor
- Re: Option buttons not working
- References:
- Re: Option buttons not working
- From: Lisab
- Re: Option buttons not working
- From: Stefan Blom
- Re: Option buttons not working
- From: Lisab
- Re: Option buttons not working
- From: Stefan Blom
- Re: Option buttons not working
- From: Lisab
- Re: Option buttons not working
- From: Stefan Blom
- Re: Option buttons not working
- From: Graham Mayor
- Re: Option buttons not working
- Prev by Date: Re: Footnote space in Web pages
- Next by Date: Re: Footnote space in Web pages
- Previous by thread: Re: Option buttons not working
- Next by thread: Re: Option buttons not working
- Index(es):