T
thomas.g
Guest
bonjour , j'ai un petit souci avec la macro ci dessous , le but de cette macro est de rendre toutes les checkbox invisible sauf celle qui contient cette maccro evidemment (sinon on ne peut plus le rendre de nouveau visible) , le pb avec la maccro en dessous c'est qu'elle les rend toutes invisible alor qu'il faudrait qu'elle ignore celle qui utilise la maccro ... help pls 😀
Sub verouillage()
Dim sh As Shape
Application.ScreenUpdating = False
For Each sh In ActiveSheet.Shapes
If Not InStr(1, sh.Name, "VEROUILLAGE") > 0 Then
sh.Visible = msoTrue
sh.OLEFormat.Object.Visible = Not sh.OLEFormat.Object.Visible
End If
Next sh
Exit Sub
Application.ScreenUpdating = True
End Sub
Sub verouillage()
Dim sh As Shape
Application.ScreenUpdating = False
For Each sh In ActiveSheet.Shapes
If Not InStr(1, sh.Name, "VEROUILLAGE") > 0 Then
sh.Visible = msoTrue
sh.OLEFormat.Object.Visible = Not sh.OLEFormat.Object.Visible
End If
Next sh
Exit Sub
Application.ScreenUpdating = True
End Sub