macro creates new layer but...

I have a macro that creates a new layer but it doesn't show in the Object Manager until I toggle "Layer Manager View" on and off. Macro does exactly what I want just an annoyance that I'd like to remedy.

Myron

Parents
No Data
Reply
  • Sub OpenCloseObjectManagerDocker()

    Optimization = True

        If Application.FrameWork.IsDockerVisible("73675757-b6d9-44fb-87b8-f86089d94e87") = False Then

            Application.FrameWork.ShowDocker "73675757-b6d9-44fb-87b8-f86089d94e87"

        Else

            Application.FrameWork.HideDocker "73675757-b6d9-44fb-87b8-f86089d94e87"

        End If

        Application.FrameWork.ShowDocker "73675757-b6d9-44fb-87b8-f86089d94e87"

        Optimization = False

        ActiveWindow.Refresh

    End Sub

Children