Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default for each optionbutton

Hi

I've got a Form with some OptionButtons. Now I preferably want to step
through each OptionButton.
Is it somehow possible to do it like For Each OptionButton In formname?

thx for help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default for each optionbutton

Hi MastrPhilch,

Try something like:

Dim Ctl As msforms.Control

For Each Ctl In UserForm1.Controls
If TypeOf Ctl Is msforms.OptionButton Then
'do something, e.g.:
Ctl.Visible = False
End If
Next


---
Regards,
Norman



"masterphilch" wrote in message
...
Hi

I've got a Form with some OptionButtons. Now I preferably want to step
through each OptionButton.
Is it somehow possible to do it like For Each OptionButton In formname?

thx for 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
OptionButton nrage21[_69_] Excel Programming 1 September 29th 04 02:14 AM
OptionButton nrage21[_70_] Excel Programming 0 September 29th 04 12:23 AM
Better Way to Use OptionButton [email protected] Excel Programming 0 September 1st 04 07:18 PM
Better Way to Use OptionButton [email protected] Excel Programming 4 September 1st 04 07:04 PM
which optionbutton is on Keyur Excel Programming 1 July 25th 04 05:49 AM


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