"If" VB Syntaxe

M

Marie Lavoie

I should have an answer in 5 sec maximum I guess... But can't find it!!
How do I give 2 conditions (or more) to a If?

If condition1 and condition2 then
If (condition1 and condition2) then

If condition1 and if condition2 then

.. ???



Thank you.

Marie
 
S

SunTzuComm

Here's an example; you can also use Or instead of And:

If A = B And C = D Then
If E = F And G = H Then
... and so on
End If
End If

Regards,
Wes
 
B

Bob Phillips

If A = B And C=D Then
...
--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Top