Code:
'This allows the form to update when all numbers are removed from the text box
If txtTimeSaver = 0 Then
If Text1.Text = "" Then
Text1.Text = 0 ' This code will cause the event to fire again
Call updateFormLabels() 'Updates the forms labels
txtTimeSaver = 2
End If
End If
If txtTimeSaver = 2 Then
NHEXL.Sheets("" & sheetname).Range("F" & Position).value = Text1.Text
Text1.Text = "" ' This code will cause the event to fire again
txtTimeSaver = 1
End If
If Len(Text1.Text) > 0 Then
If IsNumeric(Text1.Text) Then
NHEXL.Sheets("" & sheetname).Range("F" & Position + 1).value = Text1.Text
Call updateFormLabels() 'Updates the forms labels
txtTimeSaver = 0
End If
Else
'This line is needed if there is more than one text box
txtTimeSaver = 0
End If
If GdxBoo = True Then
'focus has to shift to something else first
CmdExit.SetFocus()
'then we bring the focus back to the text box, user will not even notice
Text1.SetFocus()
End If
So in the code above if the textbox is blank and txtTimeSaver=0 the code will change txtTimeSaver to 2 and the text in the textbox to 0 then the event will fire again setting texttime saver to 0 and the text to empty which could cause a never ending loop as it would just keep triggering the text changed event.
As a rule you should never ever change the text of a textbox in the Changed event.
I do not know if this may be causing the problem you are seeing but I would deffinitly expect it to cause problems