Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have 8 checkboxes and a variable BoxNo with a number
from 1-8. I want to be able to make the statement: If CheckBox6 = True but by using the variable to determine the name of the checkbox. Something like 'If CheckBox & BoxNo = True but something that actually works Thanks for the help, Thomas |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub CommandButton1_Click()
Dim i As Integer i = 1 If Controls("CheckBox" & i).Value = True Then MsgBox "checked" Else MsgBox "unchecked" End If End Sub "Thomas" wrote in message ... I have 8 checkboxes and a variable BoxNo with a number from 1-8. I want to be able to make the statement: If CheckBox6 = True but by using the variable to determine the name of the checkbox. Something like 'If CheckBox & BoxNo = True but something that actually works Thanks for the help, Thomas |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Matching names and combining worksheets | Excel Discussion (Misc queries) | |||
Combining first and last names into one column | Excel Worksheet Functions | |||
Combining first and last names | Setting up and Configuration of Excel | |||
Combining Defined Names to New Name For Validation | Excel Worksheet Functions | |||
Combining Defined Names to New Name For Validation | Excel Worksheet Functions |