Hello everyone. This is my VERY first post. I am new at Excel VBA and I am doing my best to learn...
I have created, with the help of some colleagues, a workbook in order to calculate marks for a class. I have several sheets in the book. One of the sheets is supposed to be used to input marks which are then calculated, averaged and placed in a table in a different sheet.
My problem is that I would like to call up the worksheet in which I need to input the marks. Everytime I click on the button with the macro to make my sheet visible, I get a Run-time error '9' Subscript out of range. My macro says:
Sub MarkEntryVisible()
Worksheets("Mark Entry").Visible = True
Worksheets("Mark Entry").Activate
End Sub
What am I doing wrong? How can I resolve the problem?
Any help would be greatly appreciated.
Thank you
I have created, with the help of some colleagues, a workbook in order to calculate marks for a class. I have several sheets in the book. One of the sheets is supposed to be used to input marks which are then calculated, averaged and placed in a table in a different sheet.
My problem is that I would like to call up the worksheet in which I need to input the marks. Everytime I click on the button with the macro to make my sheet visible, I get a Run-time error '9' Subscript out of range. My macro says:
Sub MarkEntryVisible()
Worksheets("Mark Entry").Visible = True
Worksheets("Mark Entry").Activate
End Sub
What am I doing wrong? How can I resolve the problem?
Any help would be greatly appreciated.
Thank you