View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Rob van Gelder[_4_] Rob van Gelder[_4_] is offline
external usenet poster
 
Posts: 1,236
Default If ..Then statements

If MyVar1 = True And MyVar2 = False Then
MsgBox "First Condition Satisified"
Else
MsgBox "Do Something Else"
End If

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"phil" wrote in message
...
If you have 2 conditions (2 IF statements) and both must be met, or we go
to
the
'else' statement, what is the code for this?
Your help will be appreciated.
--
phil in da uk