I have the following code:

Public Sub Test1
 Dim RC as myDll.Controller
 Set RC = New myDll.Controller

 RC.DoTask

 Debug.print "1"
 Debug.print "2"
 RC.DoOtherTask

 Msgbox "Help Me!"
End Sub

When I use debug mode and step through the code, hitting the F8 key, as soon as I hit F8 after RC.DoTask, all the code up to the msgbox executes. My immediate window has the printed lines, rc.DoOtherTask has ran.

Has anyone ever seen this?

It is completely repeatable, but only within the version of VBA that shipped with the product I'm using.

vba
Edit
Report