Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default ActiveX Option Buttons

When using activeX control's option buttons in a grouping (from the control
toolbox - not the forms toolbox), how and where do you store the results of
which option button they chose?

Thanks,

Diane
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default ActiveX Option Buttons

http://groups.google.com/group/micro...4f60c134f6cd47

Hth,
Merjet

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ActiveX Option Buttons

You're using the .GroupName property to group those optionbuttons, right?

You can also use the .linkedcell property (different for each checkbox--not just
different for each group), then use a formula to return which one was selected.

I put 3 optionbuttons from the control toolbox toolbar on a worksheet. I
assigned all three the same .groupname (Group1). And I linked the first to A1,
the second to A2 and the last to A3.

=if(a1=true,"First",if(a2=True,"Second","Third"))
or
=if(a1,"First",If(a2,"Second","Third"))

===
Or
=match(true,a1:a3,0)
to return a number.

==============
Yep, they behave differently from the optionbuttons from the Forms toolbar.

dread wrote:

When using activeX control's option buttons in a grouping (from the control
toolbox - not the forms toolbox), how and where do you store the results of
which option button they chose?

Thanks,

Diane


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default ActiveX Option Buttons

use the control source property to link them to separate cells

or (you rarely do both)

Use the click event (or other event) of each control to take the appropriate
action.

or in other code, check the controls to see whether they are selected or
not.

--
Regards,
Tom Ogilvy

"dread" wrote in message
...
When using activeX control's option buttons in a grouping (from the
control
toolbox - not the forms toolbox), how and where do you store the results
of
which option button they chose?

Thanks,

Diane



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Option buttons Robert Bruce[_2_] Excel Programming 0 January 17th 07 05:40 PM
ActiveX Option buttons Susan Excel Programming 0 January 17th 07 05:36 PM
ActiveX Option buttons merjet Excel Programming 0 January 17th 07 05:18 PM
Option Buttons -ActiveX Jim May Excel Programming 5 October 24th 06 01:19 PM
ActiveX Option Buttons all act as one group augustus Excel Programming 0 March 31st 05 04:15 AM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"