Hi guys,
I have some questions about hiding and unhiding buttons. Here comes my code, and I rename the button "Cal" and the error is that "Object doesn't support this property or method"
here is my code
Sub ClearForm()
Dim ReportSheet As Worksheet
Set ReportSheet = Worksheets(2)
Worksheets("Report").ClearContents
ReportSheet.Shapes("Rec").Visible = False
[A1].Select
End Sub
I have some questions about hiding and unhiding buttons. Here comes my code, and I rename the button "Cal" and the error is that "Object doesn't support this property or method"
here is my code
Sub ClearForm()
Dim ReportSheet As Worksheet
Set ReportSheet = Worksheets(2)
Worksheets("Report").ClearContents
ReportSheet.Shapes("Rec").Visible = False
[A1].Select
End Sub