Elapsed Time Through Multiple Userforms

preludeofme

New Member
Joined
Dec 4, 2008
Messages
34
Morning!

So i've been having some issues with a program i've setup, i have a user interface (userforms) that pulls and pushes information through various screens/programs. I am trying to capture the time it takes for someone to complete the task from start to finish but i'm getting some weird numbers.

so when they first open the first userform i have it doing this:

Code:
Private Sub UserForm_Initialize()
 
Open_Time.Caption = now()
 
End Sub
then as it goes to each subsequent userform (i have it opening different userforms based on what they are doing) i have it passing the information to the next one

Code:
Private Sub CommandButton1_Click()
 
Userform2.Open_Time.Caption = userform1.Open_Time.Caption
 
End Sub

then at the end i have the following code to pull the processing time

Code:
EndTime = Now()
Processing_Time= EndTime - Userform2.Start_Time.Caption

now it seems to be working for the most part, but i'm getting some weird numbers. sometimes it will show that someone was using it for 100+minutes when i know it was only like 2 minutes.

Anyone know of any issues or know of a different way to calculate the processing time between multiple userforms?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,224,526
Messages
6,179,322
Members
452,906
Latest member
Belthazar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top