Puzzling worksheet End

AlexanderBB

Well-known Member
Joined
Jul 1, 2009
Messages
2,134
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
If I click cell A2 and then control-End it goes to row 892, for no apparent reason.
So I click row 892, move up to the top and shift-click row 2. Rows 2-892 are selected. Then Home-Clear All.
I don't include row1 as it has headings I want to keep, and is frozen.
But control-End in A2 still takes me to A892. Is this normal? And why 892?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Control-End still goes to 892 after Saving. I can also close and reopen Excel and it still goes to 892.
>Because at some stage you have had something (maybe only formatting) in row 892
Fair enough. But shouldn't it have cleared with Clear All?
 
Upvote 0
What does
Excel Formula:
=UNICODE(A892)
give you? in your 2019 version
 
Last edited:
Upvote 0
Thanks for the replies. @mark I'm not very familiar with Worksheet formula type things, I just use VBA. But I typed
=UNICODE(A892) into the formula bar and B3 (the cell highlit at the time) changed to #NAME?
@Peter, that was it. After that Control-End went to T1.
This fixed something else, I started getting an error and had to add Application.EnableCancelKey = xlDisabled
I'd asked about this in another thread here, but don't know how to link to it. Anyway my code now runs ok with that remmed out.
I suspect this caused it
VBA Code:
Sub LastRowNum()
    RowNum = Cells.Find(What:="*", _
                    After:=Range("A1"), _
                    LookAt:=xlPart, _
                    LookIn:=xlFormulas, _
                    SearchOrder:=xlByRows, _
                    SearchDirection:=xlPrevious, _
                    MatchCase:=False).Row
End Sub
I may be wrong, but perhaps it'll happen again and I can prove it. An undetermined number of rows is being added and it was easier to use that to get the last used row, rather than keep track of the row as it was populated. At one time this returned a wrong number (yes in the 800s) and the next rows went there when they shouldn't have.
 
Upvote 0
=UNICODE(A892) into the formula bar and B3 (the cell highlit at the time) changed to #NAME?
Just for info you would get #NAME if you typed it in your 2010 version rather than your 2019 version as instructed
 
Upvote 0
@Peter, that was it. After that Control-End went to T1.
Cheers. Thanks for the confirmation. (y)

but don't know how to link to it.
I don't think we really need it but you would go to the other thread and copy what is in your browser's address bar and paste that here directly ..

.. or paste it in the 'URL' box after selecting the link icon above the reply window
1737930116530.png
and it will apear like this instead
why do I need Application.EnableCancelKey = xlDisabled
 
Upvote 0

Forum statistics

Threads
1,226,063
Messages
6,188,653
Members
453,489
Latest member
jessrw

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