Select to view content in your preferred language

Storing Original Map properties

746
1
02-22-2012 08:58 AM
NicholasMenard
New Contributor
Hello,

I'm trying to code (in VBA) a button to restore the layers status (visibility on or off) to when I first opened the mxd. It has to work for however many layers I have open. Any help would be much appreciated.

Thanks!
0 Kudos
1 Reply
JeffBarrette
Esri Regular Contributor
Do you have to do it in VBA?  You can do it with arcpy.mapping using the layer.visible property.

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer/00s300000008000000/

Jeff
0 Kudos