View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jamie Martin[_2_] Jamie Martin[_2_] is offline
external usenet poster
 
Posts: 25
Default declare type and value on one line?

Can I declare the type and the value of a variable on one line, such as

Dim sexy As Boolean = True

?

Also, can I do a two-condition test, like

If (catsLoveDogs = True) && (dogsLoveCats = False) Then
MsgBox("All is right with the world.")
End If

?