Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
FormulaR1C1 - autoconverting strings to numerics
I'm automating Excel from vb. I've a sheet object and I'm assigning
l_oSheet.Cells(Row,Col).FormulaR1C1 = CStr("03") If I step it when I look at the contents of l_oSheet.Cells(Row,Col).FormulaR1C1, It shows it is 3. I don't actually want that but what I've assigned i.e. "03". Do I have to set some other column property or assign to a different cell property? Thanks Simon |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
FormulaR1C1 - autoconverting strings to numerics
Hi Simon,
try this line before l_oSheet.Cells(Row,Col).NumberFormat = "@" Regards, ste |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
FormulaR1C1 - autoconverting strings to numerics
Excellent thanks
"ste" wrote in message ups.com... Hi Simon, try this line before l_oSheet.Cells(Row,Col).NumberFormat = "@" Regards, ste |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
find and replace numeric strings in larger text strings | Excel Worksheet Functions | |||
Extract Numerics only | Excel Discussion (Misc queries) | |||
How to forecast non-numerics? | Excel Worksheet Functions | |||
How to find number of pairs of strings from list of strings? | Excel Worksheet Functions | |||
extracting numerics from literal strings | Excel Programming |