I am having trouble trying to change xref layer colors. I want to change all xref layers with "wtr" in their name to a specified color. Here is what I have, can anyone tell me why it doesn't work? Public Sub xreflay() Dim oLayer As AcadLayer Dim oLayers As AcadLayers For Each oLayer In ThisDrawing.Layers If InStr(1, oLayer.Name, "*|*wtr*") = 0 Then oLayer.Color = 16 Exit For End If Next oLayer End Sub Thanks...