View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Neil Bhandar Neil Bhandar is offline
external usenet poster
 
Posts: 9
Default declare type and value on one line?

Multiple condiftion tests are allowed

Dim sexy As Boolean = True... did not work.

-Neil


-----Original Message-----
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

?


.