> why this code work correctly with out ((((((End If))))))
> Private Sub Command1_Click()
[quoted text clipped - 5 lines]
> End Sub
> thank you
Because it's all on the same line.
If you had it like this:
If a > b Then
MsgBox "Hi azouz"
You would need to add an
End If

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail