Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.programming
ste ste is offline
external usenet poster
 
Posts: 18
Default FormulaR1C1 - autoconverting strings to numerics

Hi Simon,

try this line before

l_oSheet.Cells(Row,Col).NumberFormat = "@"

Regards,
ste

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
Extract Numerics only Corey Excel Discussion (Misc queries) 39 January 9th 08 10:16 PM
How to forecast non-numerics? [email protected] Excel Worksheet Functions 4 April 11th 07 03:31 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
extracting numerics from literal strings Ed[_16_] Excel Programming 12 February 11th 04 09:07 PM


All times are GMT +1. The time now is 05:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"