+ Reply to Thread
Results 1 to 7 of 7

Time entry on UserForm displaying inccorectly and calculation not working on the time.

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

    Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Good Day

    I have a User Form whereby time is added. (See attached Form) I have created a lookup for time and created a drop down on the Form. However after I chose the required time it is entered into the form as a decimal number and also placed in that same format on the sheet. The lookup is in the Time Format. I then need to subtract the start time from the end time. This also does not give total time.

    What am I doing wrong?
    Please Help.

    Thank You
    Colin Smit
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Since you have the times on the lookup sheet formatted as Time, the combobox tries to accommodate the value instead of the text when you use rowsource.

    Clear the rowsource and add this code.

    Please Login or Register  to view this content.
    Then, you'll have to subtract B from A in Time sheet, and create a custom format for Column C as [h]:mm.
    David
    (*) Reputation points appreciated.

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

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Thank You for the help. I will now mark this thread as solved.

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

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Will I be able to use similar coding for a date entry?

  5. #5
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    dates are a little more forgiving. You could... (BTW since both time comboboxes use the same time, you can combine the code a little.)

    Please Login or Register  to view this content.

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

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Thanks Tinbedr...I will make a new post for the date entry as this post is solved.

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

    Re: Time entry on UserForm displaying inccorectly and calculation not working on the time.

    Quote Originally Posted by Tinbendr View Post
    dates are a little more forgiving. You could... (BTW since both time comboboxes use the same time, you can combine the code a little.)

    Please Login or Register  to view this content.
    Can you help me with the code for the date entry? I cannot get it to work right.

+ 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] Time sheet with userform as data entry
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2015, 11:44 AM
  2. Working on Date /time calculation
    By birims in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2012, 03:20 AM
  3. [SOLVED] Time not displaying correctly in textbox on a userform
    By LJ15332 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2012, 08:30 AM
  4. Excel 2007 : DATE TIME entry and calculation
    By sidyad in forum Excel General
    Replies: 4
    Last Post: 07-29-2012, 05:37 PM
  5. Verify a time entry in userform
    By Hond70 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2011, 06:30 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