Matthew Greenslet
 Idol
    Posts: 2077
Joined: 2/27/2006
User Profile |
There is a bigger issue here but for now you can get fix this error by replacing the MySubmitOrders method you posted with the following.
Protected Sub MySubmitOrders()
ScriptRunning = True
If Not moUpdateUI Is Nothing Then moUpdateUI.Invoke(Name, True)
Call SubmitBatchOrders(Me)
ScriptRunning = False
If Not moUpdateUI Is Nothing Then moUpdateUI.Invoke(Name, False)
End Sub
|