Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
TypeName function
Why does the last message box return FALSE when testing a cell for a string?
I have the same problem checking for numeric values such as Double. Sub Test() 'The active cell contains the string "ABC" MsgBox (ActiveCell.Value) 'Displays 'ABC' MsgBox (TypeName(ActiveCell.Value)) 'Displays 'String' MsgBox (TypeName(ActiveCell.Value) = "string") 'Displays 'FALSE' End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
TypeName of a UDT | Excel Programming | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
I know selected picture is a shape but typename says is picture | Excel Programming | |||
Rephrasing argument for typename and a different result | Excel Programming |