Results 1 to 2 of 2

Looping Checkboxs

Threaded View

  1. #1
    Registered User
    Join Date
    04-20-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    26

    Looping Checkboxs

    Hello again everyone - I am just trying to loop through checkbox's but it doesnt seem to work

    the code that works is this


    Sub CommandButton1_Click()
    For I = 1 To 4
    x = ActiveSheet.[Check Box 1].Value
    MsgBox x
    Next
    End Sub
    this works fine, but when i put the I in (see below) it doesnt work


    Sub CommandButton1_Click()
    For I = 1 To 4
    x = ActiveSheet.[Check Box I].Value
    MsgBox x
    Next
    End Sub
    any thoughts anyone?
    Last edited by jaimie1664; 06-08-2010 at 11:43 AM.

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