Moving between "row" and "range" formats in VBA

  • Thread starter Thread starter kls
  • Start date Start date
K

kls

In general, I need to know; if I come upon a certain row, using the
Range-Cells technique, perhaps in a loop, having arrived there, is there
a way to activate the whole row?

(I'm trying to learn how to move back and forth between these two types
of ways of identifying and altering either a range or an entire row or
colummn)

Thanks
 
cells(i,5).entireRow

rows(3).Cells(1,1).Offset(0,4)

From the immediate window:

i = 6
? cells(i,5).entireRow.Address
$6:$6

? rows(i).Cells(1,1).Offset(0,4).Address
$E$6
 

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