Sub CreateLayerPackage() Dim uid As New uid uid.Value = "{18DF94D9-0F8A-11D2-94B1-080009EEBECB}:23" Dim mxDoc As IMxDocument Set mxDoc = ThisDocument mxDoc.ContextItem = mxDoc.FocusMap.Layer(0) Dim commandItem As ICommandItem Set commandItem = ThisDocument.CommandBars.Find(uid) commandItem.Execute 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.