View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default Code to convert text input to a number

Hi FCC,

Try:

Dim myValue As Double

myValue = CDbl(TextBox1.Value)


---
Regards,
Norman



"FCC" wrote in message
...

Hi all,

What is the code to convert text taken from a input text box (on a
form) into a number that can be used for manipulation?

Thanks


--
FCC
------------------------------------------------------------------------
FCC's Profile:
http://www.excelforum.com/member.php...o&userid=35888
View this thread: http://www.excelforum.com/showthread...hreadid=568900