K
Klemen25
Hello
I found in older posts the following code to lock the scroll area:
(I have a workbook with only one sheet: Sheet1)
Sub Workbook_Open()
Worksheets(1).ScrollArea = "A1:N50"
End Sub
This works. I save it, but after reopening it- it doesn't work. If I
go than to view code- and click run for this code- the scroll area
gets locked correctly.
My understanding is that workbook_Open should be executed as the
workbook is opened- why does it not run. Does someone have any ideas?
Thank you all!
I found in older posts the following code to lock the scroll area:
(I have a workbook with only one sheet: Sheet1)
Sub Workbook_Open()
Worksheets(1).ScrollArea = "A1:N50"
End Sub
This works. I save it, but after reopening it- it doesn't work. If I
go than to view code- and click run for this code- the scroll area
gets locked correctly.
My understanding is that workbook_Open should be executed as the
workbook is opened- why does it not run. Does someone have any ideas?
Thank you all!