Can someone help me to find out why the following code is not keeping the scroll area permanent?
I used the Workbook_Open event procedure (in the "numbers" sheet module)
I have also tried this one in the worksheet:
They both work when the macro is ran, but after saving the excel file, closing it and reopen it, the scroll area is reset, doesn't keep the properties of the macro.
Thanks!
I used the Workbook_Open event procedure (in the "numbers" sheet module)
VBA Code:
Private Sub Workbook_Open()
Sheets("numbers").ScrollArea = "$A$5:$M$155"
End Sub
I have also tried this one in the worksheet:
VBA Code:
Private Sub Worksheet_Activate()
ActiveSheet.ScrollArea = "$A$5:$M$155"
End Sub
They both work when the macro is ran, but after saving the excel file, closing it and reopen it, the scroll area is reset, doesn't keep the properties of the macro.
Thanks!