Automatize layer display in data layout

Discussion created by jfunes on Aug 15, 2010
Latest reply on Aug 18, 2010 by clm42
Dear all,
Within the table of content, I do have a group of layers that I would like to manipulate in terms of displaying them on/off. I wrote a simple code but does not work. Please see code below. Suggestions will be appreciated.
Jose Funes