Jump to content

Gelés tous les calques sauf 2 en macro VBA

Guest fabdu91630

Recommended Posts

Guest fabdu91630



Je suis novice dans la programmation VBA et j'ai besoin d'aide :


J'ai besoin de créer une macro en VBA qui me permettrai de geler tous les calques sauf 2.

J'aifais cette petite macro mais ne fonctionne pas :

Sub test()


Dim i As Integer



For i = 0 To ThisDrawing.layers.Count - 1


If ThisDrawing.layers.objetName = "Y-EQP-SI" Then


ThisDrawing.layers(i).Freeze = False


ThisDrawing.layers(i).Freeze = True

End If

Next i

End Sub


Quelqu'un aurait-t-il une idée ?





Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...