Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rowan
 
Posts: n/a
Default

Try something like:

Sub MsgTimer()
Dim StartTime As Single
Dim EndTime As Single
StartTime = Timer
'Your code here
EndTime = Timer
MsgBox "Time taken: " & EndTime - StartTime & " seconds"
End Sub

Regards
Rowan

"Greegan" wrote:

What I want to do is show that the macros I've been working on actually
saves time at work, but I want to know how much time.
I would like to have the finished time appear in a msg box with an okay to
close
I'm not sure how to add a msg box let alone the start time, end time and the
calculation to provide the final answer.
Can anyone help me with this?
I'm not sure what happened but I submitted this answer on the 28th and I
can't believe it was deleted already...

Thanks in advance
G



  #2   Report Post  
Greegan
 
Posts: n/a
Default msg box with finished time, please read

What I want to do is show that the macros I've been working on actually
saves time at work, but I want to know how much time.
I would like to have the finished time appear in a msg box with an okay to
close
I'm not sure how to add a msg box let alone the start time, end time and the
calculation to provide the final answer.
Can anyone help me with this?
I'm not sure what happened but I submitted this answer on the 28th and I
can't believe it was deleted already...

Thanks in advance
G


  #3   Report Post  
Greegan
 
Posts: n/a
Default

Thank you that was awesome!


"Rowan" wrote in message
...
Try something like:

Sub MsgTimer()
Dim StartTime As Single
Dim EndTime As Single
StartTime = Timer
'Your code here
EndTime = Timer
MsgBox "Time taken: " & EndTime - StartTime & " seconds"
End Sub

Regards
Rowan

"Greegan" wrote:

What I want to do is show that the macros I've been working on actually
saves time at work, but I want to know how much time.
I would like to have the finished time appear in a msg box with an okay
to
close
I'm not sure how to add a msg box let alone the start time, end time and
the
calculation to provide the final answer.
Can anyone help me with this?
I'm not sure what happened but I submitted this answer on the 28th and I
can't believe it was deleted already...

Thanks in advance
G





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with date and time wayne visser Excel Worksheet Functions 1 June 14th 05 04:10 PM
time differences in a column 68magnolia71 Excel Worksheet Functions 3 May 9th 05 09:46 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM
Time Sheets Lady Layla Excel Discussion (Misc queries) 1 March 23rd 05 03:22 PM
unmet challenge boris Excel Worksheet Functions 2 March 16th 05 02:13 PM


All times are GMT +1. The time now is 12:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"