Option buttons not working

L

Lisab

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**
 
S

Stefan Blom

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.
 
L

Lisab

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?
 
S

Stefan Blom

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.
 
L

Lisab

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.
 
S

Stefan Blom

I already mentioned security settings in my previous reply. If you can avoid
ActiveX controls, that would be the easiest solution.
 
L

Lisab

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:)
 
S

Stefan Blom

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.
 
G

Graham Mayor

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Stefan Blom

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.
 
G

Graham Mayor

It seems that most stuff is retained in Word 2007, though it is not always
obvious how to access it. Some of it requires the document to be saved as
Word 97-2003 format e.g. if you want graphics to behave as they did in
earlier versions, but in this case you can save as docx (or with macros
docm).

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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