Show "On Screen" bottom right corner of ActiveCell range

keith05281967

Board Regular
Joined
May 6, 2011
Messages
68
All,

The below code selects the active range of a worksheet. It then scrolls to the single cell that represents the bottom rigtht corner of the range. This is almost, but not quite, what I want.

I want to see "on screen" the bottom right corner of the "selected range" not just a single cell.

I know the code is currently doing exactly what I told it to do, but only because I don't know how to tell it what to do.


Range("A1").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Application.Goto ActiveCell.SpecialCells(xlLastCell), Scroll:=True

thanks in advance
Keith
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Where do you want the bottom right cell positioned? Middle of the screen? Bottom right? Elsewhere?
 
Upvote 0
Try:
Rich (BB code):
Sub JokersToTheLeftOfMe ()
Application.Goto Range("A1").SpecialCells(xlLastCell), scroll:=True
With ActiveWindow
   .SmallScroll toright:=-10
   .SmallScroll down:=-20
End With
End Sub
You can fine tune by changing the values in red only
 
Upvote 0
Hi JackDanIce,

That works. It still unselects the selected range but I can see what I need to see.

thanks a bundle!
(stuck in the middle with you)
Keith
 
Upvote 0
Glad it works. Just add in line in red:
Rich (BB code):
Sub IncestousTurtles()

Application.ScreenUpdating = False

Application.Goto Range("A1").SpecialCells(xlLastCell), scroll:=True
With ActiveWindow
   .SmallScroll toright:=-10
   .SmallScroll down:=-20
End With
Range(Range("A1"), Range("A1").SpecialCells(xlLastCell)).Select
Application.ScreenUpdating = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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