ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell Selection Control (https://www.excelbanter.com/excel-programming/445385-cell-selection-control.html)

magmike[_2_]

Cell Selection Control
 
From row 4 down, I would like to make it so that every time the enter
key is pressed, the cell selection will always go to the next row in
the B column. For example, I am currently selecting H14, but when I
hit enter, the selection changes to B15, or if I am currently on L7
and enter is pressed, it changes to B8. Is there a way to do this?

Thanks in advance for your help,

magmike


GS[_2_]

Cell Selection Control
 
magmike was thinking very hard :
From row 4 down, I would like to make it so that every time the enter
key is pressed, the cell selection will always go to the next row in
the B column. For example, I am currently selecting H14, but when I
hit enter, the selection changes to B15, or if I am currently on L7
and enter is pressed, it changes to B8. Is there a way to do this?

Thanks in advance for your help,

magmike


Look at the Worksheet_KeyPress event...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc



GS[_2_]

Cell Selection Control
 
Sorry.., wrong spreadsheet event! (Excel doesn't support this event)

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc




All times are GMT +1. The time now is 10:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com