View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Per Jessen Per Jessen is offline
external usenet poster
 
Posts: 1,533
Default Declaration w initialization - for dummies

Hi

When you declare a boolean variable, it is False by default. Just use:

Sub Test
Dim boolVar as Boolean
Debug.Print boolVar' See the value of the variable in the immediate window
End Sub

Regards,
Per

"Mac" skrev i meddelelsen
...
Hello,

how do I declare and initialize at the same time? If I cannot use 'Dim
boolVar as boolean = false' - what is correct, then?