Hello-
Looking for some assistance to help me write some code to perform the following functions:
Background: I created a simple userform to enter data into a spreadsheet and now would like to create some reporting from the data that is on the spreadsheet. USERFORM1 writes the information to the the "DETAILS" worksheet.
Functionality needed:
1. When there is only a date and time stamp in column (C) "Date and Time Opened", I need it to subtract the date and time in this cell from the current time (=Now()) and put the results in column (K) "Total Hours Open), on that same row. Each time the spreadsheet is opened I want it to refresh the Total Hours Open. Formatting for Date and Time fields are MM/DD/YYYY HH:MM:SS.
2. When there is a date and time stamp in column (C) "Date and Time Opened" as well as a date and time stamp in column (H) "Date and Time Closed", I need it to perform a function to put the results in column (L) "Total Hours Once Closed".
3. Once there is a a value in column (L) "Total Hours Once Closed", I need it to multiply column (L) "Total Hours Once Closed" by column (F) "# Employees Affected" and put the results in column (M) "Total Labor Hours Lost by Incident". Formating for this value is HH:MM:SS.
I am stuck on where this code should reside, in the the USERFORM or the WORKSHEET?
Any assistance would be greatly appreciated.
Thanks.
Bookmarks