Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conver text to number in VBA
Hi,
How to convert "1995" (text) to 1995 (number) in VBA? Thanks. Sam |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conver text to number in VBA
activecell.Numberformat = "General"
activecell.value = activecell.value or if it is a variable Dim sStr as String Dim vVal as Variant Dim dblVal as Double sStr = "1995" vVal = cdbl(sStr) 'or dblVal = sStr -- Regards, Tom Ogilvy MSN wrote in message ... Hi, How to convert "1995" (text) to 1995 (number) in VBA? Thanks. Sam |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to conver the number "10" to spell "Ten" | Excel Discussion (Misc queries) | |||
excell cell there is figure Rs.10545,, how to conver in words | New Users to Excel | |||
I want to convert to CVS(,) from excel, I can't conver to text ? | Excel Discussion (Misc queries) | |||
CONVER CSV CUSTOMER DATA TO A CUSTOM INDIVI CUSTOMER PRICE SHEET | Excel Discussion (Misc queries) | |||
Conver Numbers to Log 10 | New Users to Excel |