Private Sub gpModelName_Click() Dim pGP As Object Set pGP = CreateObject("esriGeoprocessing.GPDispatch.1") On Error GoTo EH pGP.AddToolbox ("C:\ModelPath\ToolBoxName.tbx") pGP.ModelName Exit Sub EH: MsgBox pGP.GetMessages(), vbOKOnly, "Error. Please run manually: <b>ModelName</b>" End Sub
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.