+ Reply to Thread
Results 1 to 6 of 6

Incorrect formula outcome

  1. #1
    Registered User
    Join Date
    06-13-2006
    Posts
    76

    Incorrect formula outcome

    Hi,

    I have a piece of code (see below), but I get errors all the time. When the activecell is A1 with the value 4,25 the outcome in cell A3 should be the formula =ROUND(A1;0) and the value 4.
    Can someone help me with this code? Thanks in advance!

    Please Login or Register  to view this content.

  2. #2
    excelent
    Guest

    RE: Incorrect formula outcome

    ' , insted of ;

    Selection.Formula = "=ROUND(" & tgr & ",0)"



  3. #3
    Registered User
    Join Date
    06-13-2006
    Posts
    76

    doesn't work

    Hi,

    the solution , instead of ; doesn't work.
    Is there some other solution? Thanks in advance!

  4. #4
    excelent
    Guest

    Re: Incorrect formula outcome

    works fine here, what error do u get ?


    "leonidas" skrev:

    >
    > Hi,
    >
    > the solution , instead of ; doesn't work.
    > Is there some other solution? Thanks in advance!
    >
    >
    > --
    > leonidas
    > ------------------------------------------------------------------------
    > leonidas's Profile: http://www.excelforum.com/member.php...o&userid=35375
    > View this thread: http://www.excelforum.com/showthread...hreadid=565528
    >
    >


  5. #5
    DoctorG
    Guest

    Re: Incorrect formula outcome

    Leonida I checked the proposed solution and it works. Psakse ki allo...

    "leonidas" wrote:

    >
    > Hi,
    >
    > the solution , instead of ; doesn't work.
    > Is there some other solution? Thanks in advance!
    >
    >
    > --
    > leonidas
    > ------------------------------------------------------------------------
    > leonidas's Profile: http://www.excelforum.com/member.php...o&userid=35375
    > View this thread: http://www.excelforum.com/showthread...hreadid=565528
    >
    >


  6. #6
    Registered User
    Join Date
    06-13-2006
    Posts
    76

    Problem solved!

    Hi,

    Sorry, my mistake!
    The , instead of ; does work fine. I had allready been changing the code to try to find a solution and made "selection.formula" into "selection.formulaR1C1" and then it doesn't work.
    Thanks for you help!

+ 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