Dim pActiveView As IActiveView Set pActiveView = pMxDoc.ActiveView If TypeOf pActiveView Is IPageLayout Then Set pActiveView.FocusMap = pMap ElseIf TypeOf pActiveView Is IMap Then Set pMxDoc.ActiveView = pMap End If
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.