Here is one I use to goto the next row 6 cells to the left if I am now in
col 8 by using the right arrow key.
right click sheet tab>view code>insert this>modify to suit>save
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Row > 5 And Target.Column = 8 Then ActiveCell.Offset(1, -6).Select
End Sub
Actually I find that I have to disagree with you, having tested it out.
Both methods appear to have the same effect.
I selected row 5
I then hit the enter key a few times so that the active cell within the
selection shifted to the right by a few columns without deselecting the row.
I then ran the macro as originally suggested by me:
ActiveWindow.RangeSelection.Offset(1, 0).Resize(1, 1).Select
and the selection changed to a single cell in column "A" immediately below
the previous selection, ie in this case A6.
Don Guillett said:
that only goes down one from the active cell but this goes to col A of the
next row
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.