+ Reply to Thread
Results 1 to 3 of 3

Have formula results/textbox to round value at 0 decimal places

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Have formula results/textbox to round value at 0 decimal places

    Hi everyone,

    I have the following bits of code:

    Please Login or Register  to view this content.
    All I'm trying to do is have the number value which shows up in the NewScore textbox round the NewScore.Value to 0 decimal places. As i have it right now, the value doesn't come up at all. When I remove the Private Sub NewScore_Change macro then the value comes up but its to multiple decimal places.

    Any ideas?

    Thanks!!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Have formula results/textbox to round value at 0 decimal places

    In NewScore_Change try changing Number to NewScore.Text.Value, or change the code for the button.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Have formula results/textbox to round value at 0 decimal places

    Hi Norie,

    Using "'###" gave me an error, but when I changed Number to NewScore.Value in the NewScore_Change code it worked. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 01-14-2014, 07:39 AM
  2. [SOLVED] Round 2 decimal places
    By Ventoux in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 02:17 PM
  3. [SOLVED] Round numbers to decimal places
    By bigband1 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-01-2013, 11:34 AM
  4. [SOLVED] Function to round up if more than 2 decimal places
    By lauralizzy in forum Excel General
    Replies: 1
    Last Post: 06-28-2012, 09:30 AM
  5. Round to two decimal places
    By golfnutte in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2007, 05:48 PM

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