How to apply styles from a style file automatically?

Discussion created by garnet on Mar 27, 2013
Latest reply on Mar 28, 2013 by jbarrette-esristaff

I have a style file with few hundred items in it (points, lines and polygons). All my data have a code field and each feature in it has a code that links to the style file. Normally I apply the styles by clicking properties>symbology>categories>match to symbols in a style, select the style file, then select the code field and press match symbols. It all works great for small number of TOC items.
My question is is it possible a tool (button of the toolbar) to be created to do the above automatically for all TOC layers.
Or even better automatically at the time of adding new data to the TOC?
Any suggestions welcome.