selection change macro to go down 1 cell

B

Billy

i need a macro that will move the cursor down 1 when certain cells are
slected.
the cells are e13, e15, e17, e19, etc. when any of these r selected, i
would lie the cursor to go to e14, or e 16, or e 18, etc, so the
slection change is down 1.

thanks...
Tonso
 
R

Rick Rothstein

Give this a try...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 5 And Target.Row > 12 And Target.Row Mod 2 = 1 Then
Target.Offset(1).Select
End If
End Sub
 
B

Billy

Give this a try...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
  If Target.Column = 5 And Target.Row > 12 And Target.Row Mod 2 = 1Then
    Target.Offset(1).Select
  End If
End Sub

--
Rick (MVP - Excel)







- Show quoted text -

Rick,

Thanks! Got this to working just fine!
Again, many thanks,

Tonso
 

Ask a Question

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.

Ask a Question

Top