Cell range

A

Al

Hi All
In a macro I have found the address of a cell
and want to define a range starting with that cell.
Is there a way to do that?
Many thanks.
Al
 
P

Peter Atherton

-----Original Message-----
Hi All
In a macro I have found the address of a cell
and want to define a range starting with that cell.
Is there a way to do that?
Many thanks.

Al

something like

RAnge("A2".select
for each c in activecell.currentregion

or

Range("A2").select
r= currentregion.rows.count
col = currentregion.columns.count

for i = 2 to r
cells(i,whatever).value =cells(i,whatever)*2
next i

Regards
Peter
 

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