+ Reply to Thread
Results 1 to 3 of 3

User Form Txt Box calculation converting kg/min to T/Hour must show T/H and have comma

  1. #1
    Forum Contributor
    Join Date
    06-03-2014
    Location
    South-Africa
    MS-Off Ver
    2010
    Posts
    133

    User Form Txt Box calculation converting kg/min to T/Hour must show T/H and have comma

    Hi There..

    I have the code below that is a simple calculation where a weight per minute is multiplied to give a total weight per hour. The calculation works but I need the format to show with a text addition as well as a comma or point between ton and kilogram. For example if I enter a value in Textbox_TotalSandKGM of 216 (Which refers to kg/min) then the result is "12960" but I need it to show as "12,960 Ton per Hour"



    Please Login or Register  to view this content.
    Anyone knows what I need to add here?

  2. #2
    Registered User
    Join Date
    10-29-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    41

    Re: User Form Txt Box calculation converting kg/min to T/Hour must show T/H and have comma

    Here you go:

    Textbox_SandWeightTPH = Format( Textbox_TotalSandKGM * 60 / 1000 , "0.000") & " Ton per Hour"

    Blue is the original formula.

  3. #3
    Forum Contributor
    Join Date
    06-03-2014
    Location
    South-Africa
    MS-Off Ver
    2010
    Posts
    133

    Re: User Form Txt Box calculation converting kg/min to T/Hour must show T/H and have comma

    Quote Originally Posted by dgranneman View Post
    Here you go:

    Textbox_SandWeightTPH = Format( Textbox_TotalSandKGM * 60 / 1000 , "0.000") & " Ton per Hour"

    Blue is the original formula.
    Tks...it works! Will mark thread as solved and add reputation!

+ 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. [SOLVED] User form/ to show please wait
    By Momo in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-06-2022, 05:10 AM
  2. [SOLVED] User Form texbox calculation to return % icon after value.
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-04-2014, 06:24 PM
  3. [SOLVED] Excel user form- If/Then statement outcome to show on user form
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:16 AM
  4. VBA User Form Label won't show
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2011, 09:57 AM
  5. Calculation in User Form
    By mal.b.graham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2011, 09:39 AM

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