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

I have four option buttons on a form that are not grouped. I would like to
be able to clear the buttons so that the user can select the appropriate
option button. I would also like to have all of the option button cleared
when the formed is reopened. This is not an active x control, but a from
control. I have tried different codes from the various discussions and none
of them address my particular issue. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Clearing Option Buttons

Hi

Assuming your Form is a worksheet, in fact assuming the very first
worksheet:

Sub ClearEm()
Dim i As Long
For i = 1 To Sheets(1).OptionButtons.Count
Sheets(1).OptionButtons(i).Value = False
Next
End Sub

HTH. Best wishes Harald

"pdaws" wrote in message
...
I have four option buttons on a form that are not grouped. I would like to
be able to clear the buttons so that the user can select the appropriate
option button. I would also like to have all of the option button cleared
when the formed is reopened. This is not an active x control, but a from
control. I have tried different codes from the various discussions and
none
of them address my particular issue. Please help.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Clearing Option Buttons

Thanks Harold for the reply, but I tried it and it did not work. I put the
code at the end of the other codes of the option buttons and yes it is a
worksheet and it is worksheet 3.

"Harald Staff" wrote:

Hi

Assuming your Form is a worksheet, in fact assuming the very first
worksheet:

Sub ClearEm()
Dim i As Long
For i = 1 To Sheets(1).OptionButtons.Count
Sheets(1).OptionButtons(i).Value = False
Next
End Sub

HTH. Best wishes Harald

"pdaws" wrote in message
...
I have four option buttons on a form that are not grouped. I would like to
be able to clear the buttons so that the user can select the appropriate
option button. I would also like to have all of the option button cleared
when the formed is reopened. This is not an active x control, but a from
control. I have tried different codes from the various discussions and
none
of them address my particular issue. Please help.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Clearing Option Buttons

Ok, so either put it on worksheet 1 instead, or alter the code a little.

Hint: Look for the 1's

HTH. Best wishes Harald

"pdaws" wrote in message
...
Thanks Harold for the reply, but I tried it and it did not work. I put
the
code at the end of the other codes of the option buttons and yes it is a
worksheet and it is worksheet 3.

"Harald Staff" wrote:

Hi

Assuming your Form is a worksheet, in fact assuming the very first
worksheet:

Sub ClearEm()
Dim i As Long
For i = 1 To Sheets(1).OptionButtons.Count
Sheets(1).OptionButtons(i).Value = False
Next
End Sub

HTH. Best wishes Harald

"pdaws" wrote in message
...
I have four option buttons on a form that are not grouped. I would like
to
be able to clear the buttons so that the user can select the
appropriate
option button. I would also like to have all of the option button
cleared
when the formed is reopened. This is not an active x control, but a
from
control. I have tried different codes from the various discussions and
none
of them address my particular issue. Please help.




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
option buttons gramps Excel Discussion (Misc queries) 1 September 15th 08 11:20 PM
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
option buttons help kb Excel Worksheet Functions 2 June 18th 07 11:06 PM
Option Buttons Grant90 Excel Discussion (Misc queries) 1 July 29th 05 02:34 PM
yes/no option buttons Evanya Excel Discussion (Misc queries) 4 May 28th 05 12:19 AM


All times are GMT +1. The time now is 05:29 PM.

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

About Us

"It's about Microsoft Excel"