Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close UI from Macro 1

Status
Not open for further replies.

johnhugh

Technical User
Joined
Mar 24, 2010
Messages
702
Location
SG
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.

Code:
Private Sub AccpacPO1210UICtrl1_OnUIAppClosed()
AccpacPO1210UICtrl1.CloseUIApp
Exit Sub
End Sub
 
Tried that as well, but get "Can't load or unload object" error.
 
Thanks. Working now.
Is there a way to open the UI in the centre of my screen rather then top left corner?
 
ok. Found it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top