Results 1 to 2 of 2

Thread: Topic: for i = 1 to 300 optionbutton(i) = false next???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    The Netherlands
    Posts
    26

    Post

    I want to check a couple of hundred optionbuttons and for each optionbutton that's true a particular cell has to become 1 or zero.

    How can I do this??

  2. #2
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    New Jersey
    Posts
    334

    Post

    You could try this.

    Create a control array for the option buttons. Once that is done, use this code:

    for i = 1 to 300
    if option(i).value = true then 'do something
    next

    I hope this helped. I'm not sure if it'll help.

    Alexander McAndrew
    VB Zone http://gsenterprise.server101.com

Posting Permissions

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



Click Here to Expand Forum to Full Width