Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Need a little VBA help. dim var1 as integer var1 = countA - countB (for example) If var1 0 then This if statement works fine when var1 is a possitive number. When var1 is a negative number I get a "Type Mismatch" error. Should I not be able to compare a negative value with another number? I've tried declaring 0 as integer variable to ensure both variables being compared in the If statement are of the same type, but that didn't help. Any suggestions? -- D.Farns |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
Conditional Formatting - Run Time Error '13' Type Mismatch Error | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
type mismatch error | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming |