Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Set all option buttons on worksheet to off

Hi I use the following below to set all checkboxes on sheet 1 to off, can the
same be done for option buttons on sheet 1. The option buttons used are from
the forms toolbar.


Private Sub clear_Click()
Worksheets("sheet1").CheckBoxes.Value = xlOff
End Sub


Have tried a copy of ideas but I haven't got there yet.
--
This post was created using recycled electrons!
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Set all option buttons on worksheet to off

This seems to work fine for me:

Sub test()

For Each OptionButton In ActiveSheet.OptionButtons
OptionButton.Value = False
Next

End Sub

Good luck.

Ken
Norfolk, Va

On Feb 9, 4:45 pm, Newbeetle
wrote:
Hi I use the following below to set all checkboxes on sheet 1 to off, can the
same be done for option buttons on sheet 1. The option buttons used are from
the forms toolbar.

Private Sub clear_Click()
Worksheets("sheet1").CheckBoxes.Value = xlOff
End Sub

Have tried a copy of ideas but I haven't got there yet.
--
This post was created using recycled electrons!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Set all option buttons on worksheet to off

How about something like:

worksheets("Sheet1").OptionButtons.Value = False



Newbeetle wrote:

Hi I use the following below to set all checkboxes on sheet 1 to off, can the
same be done for option buttons on sheet 1. The option buttons used are from
the forms toolbar.

Private Sub clear_Click()
Worksheets("sheet1").CheckBoxes.Value = xlOff
End Sub

Have tried a copy of ideas but I haven't got there yet.
--
This post was created using recycled electrons!


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Set all option buttons on worksheet to off

Thanks Guys,


--
This post was created using recycled electrons!


"Dave Peterson" wrote:

How about something like:

worksheets("Sheet1").OptionButtons.Value = False



Newbeetle wrote:

Hi I use the following below to set all checkboxes on sheet 1 to off, can the
same be done for option buttons on sheet 1. The option buttons used are from
the forms toolbar.

Private Sub clear_Click()
Worksheets("sheet1").CheckBoxes.Value = xlOff
End Sub

Have tried a copy of ideas but I haven't got there yet.
--
This post was created using recycled electrons!


--

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
Change Header & Footer Info w/ Worksheet Option Buttons Ryan H Excel Discussion (Misc queries) 0 December 8th 09 03:09 PM
Two Groups of Option Buttons on Worksheet Jim May Excel Discussion (Misc queries) 0 June 24th 06 09:34 PM
Option buttons on a worksheet Ann Shaw Excel Discussion (Misc queries) 1 April 27th 05 02:28 PM
How do I create a form in a worksheet with control option buttons. andreah New Users to Excel 2 April 23rd 05 01:12 AM
Can I use more than one set of option buttons in a worksheet? Ray Excel Worksheet Functions 2 November 22nd 04 03:37 PM


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