Hi,
I have a macro in Accpac 6 which simply shows the PO Entry UI.
I'm trying to close my form and end my macro when clicking close on the UI.
I've tried the examples I could find but no luck. The form stays open.
What is wrong with my code below?
Code is in the form.
I have a macro in Accpac 6 which simply shows the PO Entry UI.
I'm trying to close my form and end my macro when clicking close on the UI.
I've tried the examples I could find but no luck. The form stays open.
What is wrong with my code below?
Code is in the form.
Code:
Private Sub AccpacPO1210UICtrl1_OnUIAppClosed()
AccpacPO1210UICtrl1.CloseUIApp
Exit Sub
End Sub