is it posible to lock the zoom and scrolling on only one sheet of a workbook. so that the users cant scrole up and down and change the amount of zoom.
cheers
is it posible to lock the zoom and scrolling on only one sheet of a workbook. so that the users cant scrole up and down and change the amount of zoom.
cheers
Hi,
You could set the Range which would stop scrolling. Need to add the below and close and re-open file to work.
Code goes into thisworkbook (see link below for instructions)
Not sure about the Zoom. I assume it would be a Event macro on the sheet![]()
Private Sub Workbook_Open() With Sheets("Sheet1") .Activate .ScrollArea = "A1:E30" 'Change to your range End With ActiveWindow.DisplayHeadings = False End Sub
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
i understand how this would work but where would i place it in the the vba editor as it is a seperate sub function so it will not fit in with the rest of the code
Hi,Originally Posted by shortman_alan
try any ofthis will allow the user to scroll other workbooks that are open.![]()
Private Sub Workbook_Activate() With ActiveWindow .DisplayHeadings = False .DisplayHorizontalScrollBar = False .DisplayVerticalScrollBar = False .DisplayWorkbookTabs = False End With
If for a specific sheet then in the sheet when activated.
Private Sub Worksheet_Activate()
When leaving the sheet/book you need to make the settings True
Hope this helps.
---
hth
---
Si fractum non sit, noli id reficere.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks