Scroll Area is affected by zoom level?

KX13ZN

New Member
Joined
Sep 12, 2019
Messages
34
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
I have a number of scroll areas set in my workbook.open module.

All bar 2 or them work as intended.

Both of the sheets that don't work are not working in exactly the same way.

Depending on the zoom level, if the outer boundary of the scroll area is set beyond the current view then scrolling is limited as expected.

eg at 100% zoom the viewable range is A1:AE39. if I set a scroll area outside of this say A1:AE40, it works as expected.

if i set a scroll area inside the view range then the sheet scrolls until the last used row is out of view.

the code im using in workbook.open;

VBA Code:
Sheets("PDASH").ScrollArea = "A1:Q36"

The sheet properties show the scroll area set properly as $A$1:$Q$36

at 100% zoom i can scroll to row 53
at 110% zoom i can scroll to row 50
at 130% zoom i can scroll to row 44
at 150% zoom i can scroll to row 39
at 170% zoom i can scroll to row 36

I have no idea why the scroll area only works properly at 170% zoom

I have no idea why its being this way and only on 2 sheets?

Can anyone shed light on this?
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,215,491
Messages
6,125,102
Members
449,205
Latest member
ralemanygarcia

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