Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem with Option button control in multiple sheets

My application uses a worksheet which contains some action buttons and
an OptionButton ActiveX control. All the code for the buttons is in
modules and the option button has no code at all - I just need to be
able to read its value. The idea is that the user creates a new
instance of this data-entry "form" by creating a copy of the worksheet.
The buttons get copied along and continue to function independently
across worksheets, using the same code. The option button, however,
does not retain its value on each sheet. When I change it on one sheet,
it loses its value in all others! What can I do to fix this? Note that
I access the button by prefixing it with the worksheet, e.g.
ActiveSheet.OptionButton1.Value, but if I click on it in one sheet,
then all its instances in all other sheets turn to False.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem with Option button control in multiple sheets

Dave,
Thanks, that works great! I didn't want to force a custom "copy"
procedure on the user, but the optionbuttons from the forms toolbar
seem to work just fine! You simply need to access them a little
differently, as
ActiveSheet.Shapes("buttonName").ControlForrmat.Va lue=xlOn|xlOff and
the problem is solved.

Thanks again!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Problem with Option button control in multiple sheets

Or even directly through the OptionButtons collection:

ActiveSheet.OptionButtons("OptionButtonName").Valu e=xlOn 'xlOff



wrote:

Dave,
Thanks, that works great! I didn't want to force a custom "copy"
procedure on the user, but the optionbuttons from the forms toolbar
seem to work just fine! You simply need to access them a little
differently, as
ActiveSheet.Shapes("buttonName").ControlForrmat.Va lue=xlOn|xlOff and
the problem is solved.

Thanks again!


--

Dave Peterson
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
How to format control toolbox option button? Rafat Excel Discussion (Misc queries) 1 June 8th 06 12:27 AM
Option Button-Format Control-Cell Link... andym Excel Programming 7 October 5th 04 01:49 PM
Option button problem Paul Excel Programming 1 July 23rd 04 02:07 PM
Command/option/spin button - no control menu available Daniel[_7_] Excel Programming 3 March 5th 04 03:02 PM
Option Button Control Rod[_4_] Excel Programming 0 September 16th 03 11:30 PM


All times are GMT +1. The time now is 05:28 AM.

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"