+ Reply to Thread
Results 1 to 3 of 3

FormulaR1C1 - autoconverting strings to numerics

  1. #1
    Simon Woods
    Guest

    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. #2
    ste
    Guest

    Re: FormulaR1C1 - autoconverting strings to numerics

    Hi Simon,

    try this line before

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

    Regards,
    ste


  3. #3
    Simon Woods
    Guest

    Re: FormulaR1C1 - autoconverting strings to numerics

    Excellent thanks

    "ste" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Simon,
    >
    > try this line before
    >
    > l_oSheet.Cells(Row,Col).NumberFormat = "@"
    >
    > Regards,
    > ste
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1