How do I select a cell 5 cells from the active cell?

  • Thread starter Thread starter JasonK
  • Start date Start date
J

JasonK

seems simple enough, but i can't figure it out.

i am at a particular random location, and I need to select the cell 5
rows over.

TIA

JasonK
 
One way:

Public Sub SelectCell5RowsFromActiveCell()
With ActiveCell
If .Row <= Rows.Count - 5 Then _
.Offset(5, 0).Select
End With
End Sub
 

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

Back
Top