+ Reply to Thread
Results 1 to 3 of 3

Decimal Problem in Macro

  1. #1
    Registered User
    Join Date
    01-27-2005
    Location
    Thurso, Scotland
    Posts
    13

    Decimal Problem in Macro

    Hi I have a macro that compares the increasing values in Col A and writes the difference in value of these compared to the first value in Col A in Col B. This works fine as long as the first number is a whole number. If not it just rounds it up or down. I need it to give me the answer to two decimal places. Heres the code

    Please Login or Register  to view this content.
    Any help with this would be great

    John

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    My guess is it has something to do with declaring a as an integer. Try declaring a As Double, and see if it helps.

  3. #3
    Registered User
    Join Date
    01-27-2005
    Location
    Thurso, Scotland
    Posts
    13

    macro now working fine

    Jason

    Thanks for the help macro works fine now

    regards

    John

+ 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