Macro to Scroll to Named Row

Neuner

New Member
Joined
Jul 18, 2018
Messages
18
I'm using ActiveWindow.ScrollRow = 3 in a macro to take me to the top of a long list of data.

The list of data is always changing so I've named the last row "BorderLastRow". Can ActiveWindow.ScrollRow be used to take me to the bottom of the list?

There is additional information below "BorderLastRow" that I don't want to see so Ctrl+End has not been the best solution.

Thank you!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about
Code:
ActiveWindow.ScrollRow = Range("BorderLastRow").Row
 
Upvote 0
Is "BorderLastRow" a named range? or just the value in a cell?
 
Upvote 0
Is "BorderLastRow" a named range? or just the value in a cell?


It's a named Row. Guess that constitutes as a range? If you click on the row number on the left and highlight the entire row, the name BorderLastRow appears.
 
Upvote 0
In that case with the code I supplied the sheet should scroll so that row is at the top of the window.
Is it not doing that?
 
Upvote 0
Okay, it is working now. Not sure what was wrong. I shut down excel and re-opened the file and it is good to go. Thank you!!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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