5. VBA Tips - Time Your Code

How do you time how long it takes for VBA code to run ?
Simple..
Step1: At the start of your code, create a variable called "Start" (or whatever)
Set it = Timer (that takes a snapshot of the time)
Step2: At the End of your code, you can use a messagebox to display how long it took.
MsgBox Timer - Start & " Seconds"
Download Spreadsheet to see example of how to Time VBA code
Training Video on how to time your code:
»
- Nick's blog
- Add new comment
- 2189 reads

Recent comments
6 hours 19 min ago
8 hours 14 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 8 hours ago
1 day 11 hours ago
2 days 3 hours ago
2 days 4 hours ago
2 days 4 hours ago
2 days 5 hours ago