Most of the Excel Geeks might have faced this problem.
Click on this link to open the sample file for Reference.
Click on SKIP ad to Download the file. (Note: The password is blank to unprotect the sheet)
Did you like the way it's built ? It's the billing file I had built for myself to note the time spent on projects and to send to clients for payments. You can see the file has made in a professional way. A Normal user will get wondered thinking what kind of file is this. So many clients had asked me that which software I had used to make this billing file.
It's a simple excel file. You can see the Column headers & Row headers are hidden, Scroll bars are not available, Sheet tabs are hidden. You can click or select only the cells which requires any changes. It's all basic Excel tricks.
But you can see that you can't scroll the mouse. You can't use PageUp Or PageDown. The page is completely fixed only the screen. I will explain how to do this.
Do the following steps:
End Sub
ThisWorkbook.Sheets("DashBoard").ScrollArea = "A1:E20"
End Sub
This code will run when you open the workbook and the page will be static. User will not be able to scroll or select any cell out of the given range above.
Notes :
- You should change name of the sheet and the range in the above code as per your workbook.
- If the current workbook is not macro enabled workbook, you have to save the file as macro enable workbook.
- Make sure the macro is enabled on your excel
- You cannot unfreeze the scrolling once it's run the code while opening the file. If you want to unfreeze the scrolling, first comment the vba code and then save the file. So the code will not run while opening the file. Then Re-Open the file.
Add the comment operator (') before starting of the line as shown below. The Single Quote has placed before ThisWorkbook. You can see the commented line in a different color.
Private Sub Workbook_Open()
'ThisWorkbook.Sheets("DashBoard").ScrollArea = "A1:E20"
End Sub
3 comments:
As I am part of "Most of the Excel Geeks"... Thanks for the solution!
PS: No need to disable the scroll bars though. That's just a visible inhensement (as I see).
I agree with Dennis Kreuger in some extend. The scrolling is just a visible inhensement.
But When you make reports or dashboards with a professional look, the scrolling will become a trouble with you. It's a very useful stuff if learn the above code. We can use it for numerous uses.
Most of the excel users don't like to scroll to see the continuation of the report. Like to see all things possible in one screen.
You can get more visibility to your report hiding all unwanted stuffs in excel like Headers, scroll bars, status bar, sheet tabs, Even Ribbon also.
Splendid piece of Information, Dude, I have read posts by now, and let me tell you, This is just the sort of data that but powerd what I had been looking for, thanks a great deal once again. Author Customized dashboard
Post a Comment