+ Reply to Thread
Results 1 to 2 of 2

for each optionbutton

  1. #1
    masterphilch
    Guest

    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. #2
    Norman Jones
    Guest

    Re: 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" <masterphilch@gmx.net> wrote in message
    news:dgs1n7$hfg$1@news.hispeed.ch...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1