Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jamie,
You can't initialize a variable in its declaration. The closest you can get is to use the ":" character to put two logical lines of code on one actual line of text. E.g., Dim sexy As Boolean : sexy = True -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Jamie Martin" wrote in 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 ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cant type on line E31. | Excel Worksheet Functions | |||
Chart Type - Line Column adding a 2nd line | Charts and Charting in Excel | |||
The grid line disappear when I type in the cell | Excel Discussion (Misc queries) | |||
Can you type a line over text (opposite of underline)? | Excel Discussion (Misc queries) | |||
Adding a line Chart Type to a stacked-clustered Chart Type | Charts and Charting in Excel |