VBA Scroll Area

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
Hi guys can you help here

I ned to set the scroll area to the active cell ie lock the sheet

Also reset at the end to normal ie no scroll area setting

Can this be done?/

Cheers guys
JITUK
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi Nate

Im a bit behind here

I have

Sheets(5).ScrollArea = ActiveCell 'HardCoded

Which is terrible but you see where i am setting the currect active cell to fix the scroll??
 
Upvote 0
THIS WORKED FOR ME

Private Sub Workbook_Open()

Worksheets("Title Page").Activate
Sheet1.ScrollArea = "A1:R28"
End Sub
 
Upvote 0
Howdy Jack, no errors and no functionality eh?

Try the address property:

Sheets(5).ScrollArea = ActiveCell.Address

This is the typical requirement with property setting as such.

Merry Christmas.

_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue"> Oliver</font></font></font>
This message was edited by NateO on 2002-12-21 20:30
 
Upvote 0
Hi Nate now close to 2am London

Sleep now Ill use what i have and update this feel in a few hours - your be asleep then i guess.

Take care buddy and a very big thanks for your help here

JITUK
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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