This script will loop through all the layers and tables in the map, and remove any which do not contain any records. This can be handy when working with large and complex map documents.
Copy and paste the code into the VBA Editor, and optionally create a button to run the macro. Place this code in your Normal template to make it available in all ArcMap sessions.
Note that there is no undo functionality.
Please report any problems, questions or comments using the Contact Author button on ArcScripts. |