Results 1 to 2 of 2

Formating a number in a MessageBox

Threaded View

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    44

    Formating a number in a MessageBox

    I am using the the built in Timer for benchmarking. I show the time lapse result in a message box but I only want the number to go to 2 decimal places like the example.

    
     msgbox( "Time taken is  " & varTime & "  seconds" )
    Danny

    It should show "Time taken is 2.39 seconds"
    Last edited by TryToExcel; 08-12-2010 at 12:53 PM.

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