Pressing 'ENTER' lands me on a cell in a hidden row

Arty Choke

New Member
Joined
Oct 7, 2009
Messages
9
I have an Excel spreadsheet with numerous hidden rows.

I find that under normal circumstances with non-merged cells, when I press enter Excel will move down to the cell in the next visible row. It works great.

However, I recently discovered that under some circumstances this is not the case. It appears that if I have merged cells within a row, then Excel does not get me to the next non-visible row... I end up in the next row, even if it is hidden row.

What is worse, is now I am stuck in this cell. Pressing 'ENTER' does not advance me any further. At this point I need to either click on a new cell or use the cursor keys.

What is causing this behavior, and how do I prevent it?

Thanks!
Mike
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I recently came up against this same strange issue, this post was all the internet had to offer on it, so I'll post my solution here for future googlers:

VBA Code:
Sub workbook_open()

    Application.OnKey "{RETURN}", "thisworkbook.press_down"
    Application.OnKey "{ENTER}", "thisworkbook.press_down"
    
End Sub
Sub press_down()
SendKeys "{DOWN}"

End Sub

This forces enter to behave as the down arrow would- which as far as I can tell fixes the problem.

Thanks,
Phil
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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