Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Remove empty layers and tables from the map



contact author | download help | add bookmark | view bookmarks
Author Stephen Lead
File Name Remove empty layers.txt
Language Visual Basic
Last Modified Jan 15 2009
Status of work Public Domain
Software ArcGIS Desktop
File Size 3.07 kb
Downloads 133

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
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.