Guest fabdu91630 Posted May 26, 2011 Report Share Posted May 26, 2011 Bonjour, 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 Else ThisDrawing.layers(i).Freeze = True End If Next iEnd Sub Quelqu'un aurait-t-il une idée ? Cordialement, Fabdu91630 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.