Control-Shift-End is wrong

combatvolcano

Board Regular
Joined
Jan 13, 2010
Messages
69
Hello,

When I use control+shift+end to try to select to the bottom right portion of a sheet it selects far, far further out than my data.

My data occupies A1:BR9564, when I use control+shift+end I end up at RZ14563.

All other cells contain no data. I can even highlight the blank cells, hit delete and try again and I get the same result.

This

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select

is a very important programmatic feature and I need it to work correctly. Any ideas on what is going on here or how to correct it?

Edit: Control Shift Right then Control Shift down does indeed work. What's wrong with xlLastCell???


Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
 
Last edited:
I hear ya Jonmo, unfortunately none of those things are true... I simply didn't use a row that far down or a column that far out on that sheet or any sheet in my book or any other book... really, I'd love to know the actual cause of this, but it's not because I used that range anywhere at all.

Anyone know where in the environment xllastcell is stored? (or what it uses to get it's ranges when called?)

If I could track the numbers out of excel as they change I could possibly track this down.

So you NEVER inserted a row and/or column?
Insert Cut cells
or Insert Copied Cells
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,886
Messages
6,127,586
Members
449,386
Latest member
owais87

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