Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
Dim V As Variant V = whatever If IsNumeric(V) Then If CInt(V) = CDbl(V) Then Debug.Print "is integer" Else Debug.Print "not an integer" End If End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Ripan " wrote in message ... Fair enough. IsNumeric makes the distinction between numeric and not, but what if I only want integers, and not floats? --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
check spelling as you type | New Users to Excel | |||
Check for error.type in same cell | Excel Worksheet Functions | |||
check spelling automatically as you type by displaying red underli | Excel Discussion (Misc queries) | |||
Excel: How do I type a letter in a column and make a check mark a. | Excel Worksheet Functions | |||
Variant to String | Excel Programming |