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

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



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
T

Tom Ogilvy

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

Similar Threads

Excel Range : Row limit 2
Can't iterate thru a row with For 2
Working with a cell in a selected row 2
Trouble Naming Range 3
VBA editor replaces 'Range' with 'range' 8
Excel Range issue 2
Empty row 9
Visible Row? 4

Top