I recorded a macro to change the text on a button to show the current date.
The worksheet is not protected.
When I shared the Workbook, and click on the button, I get this error:
Run-time error '-2147024809 (80070057)':
Requested Shapes are locked for selection
I unchecked the "Lock" and "Lock Text" (when I right click on the button and click "Format Control" and under "Protection" tab), but it didn't resolve the issue.
I want the macro to work while it is being shared.
Sub updateDate()
'
' updateDate Macro
'
'
ActiveSheet.Shapes.Range(Array("Button 1")).Select
Selection.Characters.Text = Date
With Selection.Characters(Start:=1, Length:=9).Font
.Name = "Calibri"
.FontStyle = "Bold"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = 3
End With
Range("B1").Select
End Sub