Hi,
I have a worksheet that contains a button with an assigned macro to display some text. The macro (below) basically changes the font colour.
Sub ShowQ1()
'
' ShowQ1 Macro
'
Application.Goto Reference:="R5C3"
Selection.Font.ColorIndex = 0
End Sub
This works fine when none of the worksheet is protected. However if I protect the worksheet I get a runtime error 1004. Unable to set the ColorIndex property of teh font class.
The protection is not on the cells that the macro will affect.
Has anyone any ideas how I get around this?
Thanks
I have a worksheet that contains a button with an assigned macro to display some text. The macro (below) basically changes the font colour.
Sub ShowQ1()
'
' ShowQ1 Macro
'
Application.Goto Reference:="R5C3"
Selection.Font.ColorIndex = 0
End Sub
This works fine when none of the worksheet is protected. However if I protect the worksheet I get a runtime error 1004. Unable to set the ColorIndex property of teh font class.
The protection is not on the cells that the macro will affect.
Has anyone any ideas how I get around this?
Thanks