Option buttons on userform

M

Mark

I am using word 97. I have 3 option buttons on a userform in a frame.

I need some code to ensure that one of these option buttons is highlighted,
and if not does not let the user move forward to the nest stage when they
press the 'ok' button

Can someone provide me with code which will do this please?
 
A

Anand.V.V.N

Hi,
The code is simple just try this. Have a global varible say 'clicked' . in
the click event of the option buttons write clicked='true'
In the command button event chcekc if clicked=true
if clciked='true'
'write your code here
else
endif
Hope you find this helpful
Anand
 
P

Perry

If they're all in a frame, no need for addtl code.

In designtime, pick the one that will be most likely selected by enduser,
change the
(default) value property to True.

This way, there will always be a selection ...

--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
 

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