A non-functioning If block
Solved
Iheb1975
Posted messages
40
Status
Member
-
Iheb1975 Posted messages 40 Status Member -
Iheb1975 Posted messages 40 Status Member -
Hello,
I am new to VBA and I have a problem with an If Block:
The code is as follows:
If My_type = "A" Then Type_Sinistre = "Automobile"
Else: Type_Sinistre = "Multirisque"
End If
When I run it, I get the following error message:
Compilation Error
Else without If
What is the problem exactly? Thank you in advance for your help
Configuration: Windows 7 / Firefox 44.0
I am new to VBA and I have a problem with an If Block:
The code is as follows:
If My_type = "A" Then Type_Sinistre = "Automobile"
Else: Type_Sinistre = "Multirisque"
End If
When I run it, I get the following error message:
Compilation Error
Else without If
What is the problem exactly? Thank you in advance for your help
Configuration: Windows 7 / Firefox 44.0