venkateshr
New Member
- Joined
- Oct 22, 2013
- Messages
- 26
Hi Experts,
need help on runtime error 28 out of stack space
This is a time taken perform activity capturing macro and it is working fine. Only when the time is crossing 9 minutes error occurs and the macro stops. I understand this is due to recursive loop can anyone suggest alternative solution to fix this please.
Private Sub StartMe()
Dim start
start = Timer
If [RunClock? ] Then
Do While (Timer < start + 1)
Do Events
Loop
If [RunClock?] Then
[Elapsedtime] = [ElapsedTime] + TimeValue(“00:00:01”)
frmCTcapture.txtCycleTime.value = Format([ElapsedTime], “hh:mm:ss”)
StartMe
End if
End if
End sub
need help on runtime error 28 out of stack space
This is a time taken perform activity capturing macro and it is working fine. Only when the time is crossing 9 minutes error occurs and the macro stops. I understand this is due to recursive loop can anyone suggest alternative solution to fix this please.
Private Sub StartMe()
Dim start
start = Timer
If [RunClock? ] Then
Do While (Timer < start + 1)
Do Events
Loop
If [RunClock?] Then
[Elapsedtime] = [ElapsedTime] + TimeValue(“00:00:01”)
frmCTcapture.txtCycleTime.value = Format([ElapsedTime], “hh:mm:ss”)
StartMe
End if
End if
End sub