Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have been using VBA for several years. This may be a
really stupid question, but I have recently encountered a funny phenomena. I use have always assumed that you could "stack" variables of the same type in a DIM statement. For example Dim A, B, C as Integer and Dim A as Integer Dim B as Intger Dim C as Integer would have the same effect, i.e., all variables would be of type Integer. I now find that this appears to not be true and that some variables in a multi-variable Dim statement are considered Variants. What is supposed to happen with a multi-variable Dim statement? If only one of the variables is acutallly types as I want, are the rest of type Variant? What is the value of allowing multiple variables if they are not typed the same? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF statements with * character doesn't work | Excel Worksheet Functions | |||
IF Statements (Mutliple Statements) | Excel Worksheet Functions | |||
Getting multiple IF statements to work | Excel Discussion (Misc queries) | |||
I'm desperate I posted earlier about "If" statements that don't work but are correct. Now... | Excel Worksheet Functions | |||
Cant get totals to work with IF statements | Excel Worksheet Functions |