UMAKEMESIK
Active Member
- Joined
- Oct 3, 2005
- Messages
- 378
Hello to all,
i have the code below.
with some fomatting
i am able to change the cell e10 to green
when the check box is checked.
e10 is the first cell the check boxes start and continue on down the column.
i have a checkbox in each cell of column below 10
i tried to drag copy down but when i check any other check box only e10 turns
green as stated in the code.
without having to manually format all the cells individually in the column.
is there a way i can take the code below to apply to all cells in column E below
10?
thanks in advance.
i have the code below.
with some fomatting
i am able to change the cell e10 to green
when the check box is checked.
e10 is the first cell the check boxes start and continue on down the column.
i have a checkbox in each cell of column below 10
i tried to drag copy down but when i check any other check box only e10 turns
green as stated in the code.
without having to manually format all the cells individually in the column.
is there a way i can take the code below to apply to all cells in column E below
10?
thanks in advance.
Code:
Sub myCheckBox1()
Application.Run "RedGreen1"
End Sub
Sub RedGreen1()
Application.ScreenUpdating = False
If [E10].Interior.ColorIndex = 2 Then
[E10].Interior.ColorIndex = 10
Exit Sub
End If
If [E10].Interior.ColorIndex = 10 Then
[E10].Interior.ColorIndex = 2
Application.ScreenUpdating = True
End If
End Sub