Hi, I have a command button that I would like to use to view a worksheet when it has been clicked, the code I have below come up with an error:
Object doesn't support this property or method
Many thanks for your time![]()
Private Sub CommandButton1_Click() Workbooks.("Project.xlsm").Worksheets("interestRateSim").Show 'I also Tried 'Workbooks.("Project.xlsm").Worksheets("interestRateSim").Visible = True End Sub
Bookmarks