jalrs
Active Member
- Joined
- Apr 6, 2022
- Messages
- 300
- Office Version
- 365
- Platform
- Windows
Good afternoon guys,
I have this code that I managed to pull with the help of a old thread here and other website tips, and I want to save each msgbox time on cell A1:A100. How do I accomplish this?
This would help me discussing the results of my project, as I'd have a quite large sample of values.
Any help is greatly appreciated.
Thanks!
I have this code that I managed to pull with the help of a old thread here and other website tips, and I want to save each msgbox time on cell A1:A100. How do I accomplish this?
This would help me discussing the results of my project, as I'd have a quite large sample of values.
VBA Code:
Sub tempo()
Application.ScreenUpdating = False
Dim wb as workbook
Dim ws as worksheet
Dim i As Long
Dim StartTime As Double
Dim SecondsElapsed As Double
Set wb = ThisWorkbook
Set ws = wb.Worksheets("Resultados")
StartTime = Timer
SecondElapsed = Round(Timer - StartTime, 2)
For i = 1 To 100
Call integrar
Call partilhar
Call regularizar
Next i
MsgBox "This code ran successfully in " & SecondsElapsed & " seconds", vbInformation
Application.ScreenUpdating = True
End Sub
Any help is greatly appreciated.
Thanks!