G
Guest
can someone help me in this problem, I have the follow routine that does not
work:
For Each msheet In Worksheets
If Left(msheet.Name, 6) = "Player" Then
msheet.Unprotect Password:="xxx"
For Each mshape In msheet.Shapes
' I have a CommandButton
If mshape.Caption = "Played" Then <--- here it stops
running!!!
mshape.Caption = "Play"
mshape.BackColor = 16744576
End If
......
......
work:
For Each msheet In Worksheets
If Left(msheet.Name, 6) = "Player" Then
msheet.Unprotect Password:="xxx"
For Each mshape In msheet.Shapes
' I have a CommandButton
If mshape.Caption = "Played" Then <--- here it stops
running!!!
mshape.Caption = "Play"
mshape.BackColor = 16744576
End If
......
......