Forcing Window Zoom to Selection?

USNA91

New Member
Joined
Mar 21, 2024
Messages
38
Office Version
  1. 365
Platform
  1. Windows
I am working on a workbook that, in part, requires multiple users to enter their data into "Form" sheets. That data is then collected and used elsewhere.

I'd like these users to see this workbook as much as an app (rather than a spreadsheet) as possible.

To that end, is there a method of having an Excel window automatically remain zoomed to Columns A through M or Rows 1 through 50 no matter what the size of the actual window is?

This is a "nice to have" in my list of desired features. Maybe I'm overthinking it (OCD again), but if it CAN be done I'm all for it.

Thanks in advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
This can be done with VBA
' in ThisWorkbook code module
VBA Code:
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
    With Sh
        .ScrollArea = "$A$1:$m$50"
        .Range(.ScrollArea).Select
        ActiveWindow.Zoom = True
    End With
End Sub
But, fixing zooming to 50 rows is awfuly small cells. You might want to let the use zoom to a comfortable size.
 
Upvote 0
Solution
Oh, I hear you on the cell size. In this case it wouldn't really be 50 rows, but even if it were, the display would be completely graphical (progress bars and such), so it would work.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,198
Members
453,022
Latest member
RobertV1609

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