View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kkknie[_28_] kkknie[_28_] is offline
external usenet poster
 
Posts: 1
Default Declaring As Variant, Changing to Double?

This is how I do it:


Code
-------------------
Dim strTemp as String
Dim varused as double

strTemp = Application.InputBox("Enter the value.")

If Not IsNumeric(strTemp) Then
'Message non numeric and exit
End If

If Trim(strTemp) = "" Then
'Message blank and exit
End If

varused = CDbl(strTemp
-------------------



--
Message posted from http://www.ExcelForum.com