Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I get a 'compile error: Block if without end if' when executing this code; Private Sub CommandButton1_Click() If CheckBox1 And CheckBox16 And CheckBox19 Then Range("Urgent") = 1 End If If CheckBox1 And CheckBox16 And CheckBox20 Then Range("Urgent") = 1 End If If CheckBox1 And CheckBox16 And CheckBox21 Then Range("Urgent") = 1 End If If CheckBox1 And CheckBox17 And CheckBox19 Then Range("Urgent") = 1 End If If CheckBox1 And CheckBox17 And CheckBox20 Then Range("High") = 1 End If If CheckBox1 And CheckBox17 And CheckBox21 Then Range("Medium") = 1 End If If CheckBox1 And CheckBox18 And CheckBox19 Then Range("High") = 1 End If If CheckBox1 And CheckBox18 And CheckBox20 Then Range("Medium") = 1 End If If CheckBox1 And CheckBox18 And CheckBox21 Then Range("Low") = 1 End If If CheckBox2 And CheckBox16 And CheckBox19 Then Range("Urgent") = 1 End If If CheckBox2 And CheckBox16 And CheckBox20 Then Range("Urgent") = 1 End If If CheckBox2 And CheckBox16 And CheckBox21 Then Range("Urgent") = 1 End If If CheckBox2 And CheckBox17 And CheckBox19 Then Range("Urgent") = 1 End If End Sub What to do?! Thnx in advance Basta |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with this error-Compile error: cant find project or library | Excel Discussion (Misc queries) | |||
VBAProject name compile error, not defined at compile time | Excel Programming | |||
error message: compile error, argument not optional | Excel Programming | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |