I am using the following code but if layer 0 is frozen it errors, what can I do? 'Thaws, Turns On and Unlocks all layers Dim oLayer As AcadLayer For Each oLayer In ThisDrawing.Layers oLayer.LayerOn = True oLayer.Lock = False If oLayer.Name <> "0" Then oLayer.Freeze = False End If Next oLayer