Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default De-Select an Option button

Excel XP & Win XP
I am using Option buttons from the Control Toolbox. When I click on one, a
black dot appears in it to signify selection. Fine.
But that Option button stays selected until I click on another one and
that's not good.
How do I de-select (remove the dot) that button so that I can select it
again (and trigger code)?
I would like that button to be unselected after the code runs.
Thanks for your time. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default De-Select an Option button

Private Sub OptionButton1_Click()
If OptionButton1.Value Then
MsgBox "Clicked"
End If
OptionButton1.Value = False
End Sub

worked for me.

--
Regards,
Tom Ogilvy


"Otto Moehrbach" wrote:

Excel XP & Win XP
I am using Option buttons from the Control Toolbox. When I click on one, a
black dot appears in it to signify selection. Fine.
But that Option button stays selected until I click on another one and
that's not good.
How do I de-select (remove the dot) that button so that I can select it
again (and trigger code)?
I would like that button to be unselected after the code runs.
Thanks for your time. Otto



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default De-Select an Option button

Thanks Tom. Otto
"Tom Ogilvy" wrote in message
...
Private Sub OptionButton1_Click()
If OptionButton1.Value Then
MsgBox "Clicked"
End If
OptionButton1.Value = False
End Sub

worked for me.

--
Regards,
Tom Ogilvy


"Otto Moehrbach" wrote:

Excel XP & Win XP
I am using Option buttons from the Control Toolbox. When I click on one,
a
black dot appears in it to signify selection. Fine.
But that Option button stays selected until I click on another one and
that's not good.
How do I de-select (remove the dot) that button so that I can select it
again (and trigger code)?
I would like that button to be unselected after the code runs.
Thanks for your time. Otto





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default De-Select an Option button

This code would need to be entered into each option button code correct?
Thanks

"Otto Moehrbach" wrote:

Thanks Tom. Otto
"Tom Ogilvy" wrote in message
...
Private Sub OptionButton1_Click()
If OptionButton1.Value Then
MsgBox "Clicked"
End If
OptionButton1.Value = False
End Sub

worked for me.

--
Regards,
Tom Ogilvy


"Otto Moehrbach" wrote:

Excel XP & Win XP
I am using Option buttons from the Control Toolbox. When I click on one,
a
black dot appears in it to signify selection. Fine.
But that Option button stays selected until I click on another one and
that's not good.
How do I de-select (remove the dot) that button so that I can select it
again (and trigger code)?
I would like that button to be unselected after the code runs.
Thanks for your time. Otto






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
Can I select more than one option in a drop down box? megs Excel Discussion (Misc queries) 5 February 15th 11 10:33 AM
Select Option button unhide row Wanna Learn Excel Discussion (Misc queries) 5 March 7th 08 06:38 PM
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Select option button when have the name as a string Debbie Probert via OfficeKB.com Excel Programming 2 January 18th 05 04:37 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM


All times are GMT +1. The time now is 11:37 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"