+ Reply to Thread
Results 1 to 3 of 3

Display value in textbox format decimal places

  1. #1
    Registered User
    Join Date
    08-08-2006
    Posts
    25

    Display value in textbox format decimal places

    Hello again

    Getting very frustrated here, I can't seem to work out how to display the values to a certain number of decimal places (not concerned whether they're rounded or not)

    incvat.Text = Range("'DATA'!R4")
    lessvat.Text = Range("'DATA'!R5")
    vat.Text = Range("'DATA'!R6")


    For incvat, I need the number shown to read zero decimal places, and the others to two decimal places.

    I have tried, copying and pasting the cell data using paste special "Value and Format", and although the cells display the correct amount of decimals, the actual value of the cell and textbox remain many decimals.

    (For the record, the cells are formulas, not values)

    Any ideas?

    Many thanks

    Alex

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try so:
    Please Login or Register  to view this content.
    I hope it can help.

    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    08-08-2006
    Posts
    25

    Thumbs up

    Many thanks Antonio - works flawlessly

+ 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