Remove & lock basic functions

Scorpion Steve

Board Regular
Joined
Jun 5, 2011
Messages
220
Hey all,
I am developing a command center for my office.
I am using excel 2007 which for my project, has only got one sheet!
This has an image as a background with a number of button that I have assigned Macros.
I am needing some help to completely turn off all function so that the sheet is always in one situation and locked.
I am familiar with locking cell and hiding functions but I need the following locked, removed or hidden:
1.Scrolling - I do not want anyone to be able to move across a few cell that I have hidden (which shuffles the image across)
2.Zoom - I do not want anyone to be able to zoom in on my application page.

Thank you in advance for any help given!
Steve
Ps I am very very new to VBA codes etc but am able to understand.
**PLEASE SEE IMAGE FOR EXAMPLE**
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi, Yeah thats what I am looking for, Ive tried it this and has opened to correct zoom %.
But I am still able to zoom in and out as well as scroll across the page!
:/
 
Upvote 0
I can't speak to the zoom issue, but for the scrolling, I don't get why it isn't working. I have done the same on a sheet of my own and, although the scroll bar is visible, since nothing to the right or below is visible, there is nowhere to scroll to. Maybe this macro code will work more efficiently for you. Found it with a quick google search.

Code:
Private Sub ScrollLock()
ScrollArea = "A1:Z48"
End Sub
 
Last edited:
Upvote 0
Thanks,
Ive placed this in and saved.
I am still able to scroll out of the are. Could this be because I have hidden every other cell?
I have also protected the spreadsheet! Should it work without protecting it?
 
Upvote 0
It should work either way, protecting it just prevents your users from unhiding the hidden area. I just double-checked mine and the other thing that I've done is to use the "split" option in the view ribbon and then drag the selection down to the corner of my area. Then click the "freeze panes" button and "freeze panes" option. Sorry for the oversight. This should do it for you.
 
Upvote 0
Absolutely perfect!
I have learned the freeze feature and that works great!
Now I have just got to work on zoom disable!
Appreciate that!
Thanks!:)
 
Upvote 0
You're welcome. Good luck with the zoom. Unfortunately, it appears that holding ctrl and scrolling the mouse to zoom may not be preventable (according to some brief searches on google). Hopefully you'll have better luck than I did in finding a solution.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,854
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top