Runtime error 438 Object doesn't support this property or method <pre lang="vb">For Item = 1 To objActiveDocSecondary.Layers.Count If objActiveDocSecondary.Layers(Item).TypeName = "LayerSet" Then If InStr(UCase(objActiveDocSecondary.Layers(Item).Name), WordToSearch) Then setVisibilityAllLayers (False) objActiveDocSecondary.ActiveLayer = objActiveDocSecondary.Layers(Item) Exit For End If Call parseLayersSearch(objActiveDocSecondary.Layers(Item)) Else layerName = objActiveDocSecondary.Layers(Item).Name If InStr(UCase(objActiveDocSecondary.Layers(Item).Name), WordToSearch) Then setVisibilityAllLayers (False) ******************************************************************************** objActiveDocSecondary.ActiveLayer = objActiveDocSecondary.Layers(Item) *************************************************************************** Exit For End If End If Next Item</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)