P
Paul
Hi,
I'm trying to lock the scroll area on my worksheet.
In VB I've got:
Private Sub Workbook_Open()
Worksheets("Board").EnableSelection = xlUnlockedCells
Worksheets("Board").ScrollArea = "$A$1:$u$21"
End Sub
In the sheet Properties I input:
EnableSelection 1-xlUnlockedCells
ScrollArea $A$1:$u$21
I save.
I protect the sheet.
I save again.
This works when I go into the sheet, the necessary cells cannot be
selected and the scroll area is locked the way I want. I save and
close, but upon opening the VB code is still there but EnableSelection
and ScrollArea within properties are blank, and I am once again able
to select any cell and scroll wherever I want. Any ideas?
Thanks
Paul
I'm trying to lock the scroll area on my worksheet.
In VB I've got:
Private Sub Workbook_Open()
Worksheets("Board").EnableSelection = xlUnlockedCells
Worksheets("Board").ScrollArea = "$A$1:$u$21"
End Sub
In the sheet Properties I input:
EnableSelection 1-xlUnlockedCells
ScrollArea $A$1:$u$21
I save.
I protect the sheet.
I save again.
This works when I go into the sheet, the necessary cells cannot be
selected and the scroll area is locked the way I want. I save and
close, but upon opening the VB code is still there but EnableSelection
and ScrollArea within properties are blank, and I am once again able
to select any cell and scroll wherever I want. Any ideas?
Thanks
Paul