Move active cell?

  • Thread starter Thread starter Kent McPherson
  • Start date Start date
How do I move the active cell in a range inside a loop?

Hi Kent

You could use:

Dim cell as Range
Dim myRange as Range

For Each cell in myRange
cell.select
DoMyProcess
Next

Note that you don't actually need to select a cell in order to
interact with it, unless you specifically want to do that, so the
above minus "cell.select" would suffice.

Regards

Steve
 

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