Excel one page limited view / template

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,256
Office Version
  1. 2016
Hi, I need to create an excel file that is a one page document review, similar to a powerpoint slide I guess. I need the view to show approx. an A4 paper size with columns to the right and below hidden. I then want to limit the file from being scrolled. Basically the document will open fully viewable in a screen without the user having the ability to scroll away. They should be able to zoom in/out if possible and ideally the view to be centred on the screen. By this I mean the hidden columns and rows may leave a kind of border around the workable area. The attached shows roughly how I mean. Again, like a powerpoint slide but with excel functionality.
 

Attachments

  • Screenshot 2024-06-03 101520.png
    Screenshot 2024-06-03 101520.png
    33.1 KB · Views: 8

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi nparsons75,

If you freeze the panes out of the viewable range this will prevent any scrolling, but will allow a user to zoom in still.

In your example you froze the pane on cell AD44 the user will not be able to see outside of this area, unless they have a massive screen so maybe freezing cell ZZ1000 would be better :)

The only down side to this is that if they zoom in then they won't be able to scroll to what they are allowed to see.

Other option is to add scrap the above but add in a macro that will run when the workbook is opened to hide all the rows and cells the user shouldn't see. Will still be able to zoom and scroll to see what they are allowed to see this way.

Add this code in to the workbook module...
VBA Code:
Private Sub Workbook_Open()

'This code hides the areas not to be seen

If Application.UserName <> "Add Your Name Here" Then

With Sheets("View")

Range(Columns("AB:AB"), Columns("AB:AB").End(xlToRight)).EntireColumn.Hidden = True
Range(Rows("45:45"), Rows("45:45").End(xlDown)).EntireRow.Hidden = True

End With

End If

End Sub

Add it to where I have indicated below, and choose the two options as shown and then add the above in.
1717496310317.png


The code above will not run on you if you add your username/userID in to the code where I have typed 'Add Your User Name Here'. To get your exact user name/ID add the code to a module and run it to show what your user ID is as it needs to be exact so the above does not run when you open the workbook!
VBA Code:
Sub GetUserName()

' This code can be used just to show a popup with windows username to add in to the above

MsgBox Application.UserName

End Sub

My result with the code above...
1717496732191.png
 
Upvote 0
Hi, thanks for the reply. I am mainly using office 365 so we can share the files, I think I am finding macros will not run with 365, is this correct?
 
Upvote 0
Hi, thanks for the reply. I am mainly using office 365 so we can share the files, I think I am finding macros will not run with 365, is this correct?
Believe that is correct. Looks as though hte low tech approach with the freeze panes may be the way forwards for you.
 
Upvote 0

Forum statistics

Threads
1,223,836
Messages
6,174,921
Members
452,592
Latest member
Welshy1491

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