[GIS] Copying Symbology between layers with different numbers of features

arcmaparcobjectssymbologyvba

I am working on copying a layers symbology to a number of other layers which have the same geometry, table structure etc, etc but not the same number of features.

I have a state wide layer and I have written some code that selects out the different regions within the state layer based on a definition query and exports the features to shapefiles and then adds these shapefiles to ArcMap.

I am now trying to copy the symbology from the state wide layer to these other layers. However when I copy the symbology it copies the symbology that's set for the entire state.

In VBA, is there a way to remove these extra values so I end up with the same symbology as the state layer but that is specific to the layers new extent?

Best Answer

Here are two options that you can use to remove the extra State layer unique values from your exported new layer.

Trim Unique Values

Remove Unique Value Symbols out of current extent

Related Question