RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Good day,
I have the following code that was crashing my excel when it executed. Oddly enough (and by accident), I discovered that when the VBA editor is open, the code runs fine. So I know how it's happening but not why it's happening.
Any thoughts to why this is happening and perhaps suggestions to replace the code with something more robust?
I have the following code that was crashing my excel when it executed. Oddly enough (and by accident), I discovered that when the VBA editor is open, the code runs fine. So I know how it's happening but not why it's happening.
Any thoughts to why this is happening and perhaps suggestions to replace the code with something more robust?
VBA Code:
Dim UForm As Object
For Each UForm In VBA.UserForms
If UForm.Name = "UserGUI" Then
Exit Sub
End If
Next UForm