+ Reply to Thread
Results 1 to 3 of 3

VBA Userform calculations on Times (Start time - Finish Time = Total Hrs)

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    australia
    MS-Off Ver
    Professional PLus 2016
    Posts
    22

    VBA Userform calculations on Times (Start time - Finish Time = Total Hrs)

    I'm trying to build a userform to calculate times to work out employee timesheet on how many hrs they have done e.g. Start time 9:00am to 5:00pm = 8hrs but I'm unable to get this as it's not calculating the two "times". it gives me -96
    Is anyone able to help me with my VBA?

    Please Login or Register  to view this content.
    Full Userform Code:
    Please Login or Register  to view this content.
    Capture.JPG
    Last edited by Kitsa; 11-04-2020 at 10:16 PM.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: VBA Userform calculations on Times (Start time - Finish Time = Total Hrs)

    See the code in the userform attached.
    Attached Files Attached Files

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: VBA Userform calculations on Times (Start time - Finish Time = Total Hrs)

    Any reason why you did not post in the VBA forum?

+ 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] Macro to find the Earliest Start Time and Latest Finish Time during a period
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2018, 06:40 AM
  2. [SOLVED] Conditionl Formating to highlight time slots between start and Finish time.
    By excelrooky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2017, 02:39 AM
  3. Calculate finish time given start time, working hours and job duration
    By swanseaexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2012, 03:00 PM
  4. Ready Time, Start Time, Finish Time by user
    By teguigala in forum Excel General
    Replies: 3
    Last Post: 02-15-2012, 03:34 PM
  5. Replies: 6
    Last Post: 11-29-2011, 09:12 AM
  6. Replies: 1
    Last Post: 06-25-2010, 06:57 AM
  7. [SOLVED] template or formula for start time -finish time -total hours ple
    By cc in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-27-2006, 01:10 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