I'm working on an add in that generates new structures for an addressing system. The tool is working well, but as it runs, at some point it changes tabs in the Table of Contents to the "List By Source" tab. I'm guessing it does this either when I add temporary tables or shapefiles.
The fact that it changes tabs is not a problem, but I would like for the tool to leave the user in the TOC tab "List By Drawing Order" when it is finished.
Is there any way for a python code to change tabs in the TOC ?