command which returns the position of cell

G

Guest

I have a macro that searches a string in another sheet.
when it finds I have to proceed a series of calculus dependending on its
position.

Does anybody know a command which returns the position of the cell
([rowindex] and [columindex])?

Daniel (Brazil)
 
G

Guest

Hi Daniel,

You can use this:
Sub rowcol_index()
debug.print ActiveCell.Row
debug.print ActiveCell.Column
End Sub
 
G

Guest

Thanks.

Halim said:
Hi Daniel,

You can use this:
Sub rowcol_index()
debug.print ActiveCell.Row
debug.print ActiveCell.Column
End Sub
--

Regards,

Halim


dspilberg said:
I have a macro that searches a string in another sheet.
when it finds I have to proceed a series of calculus dependending on its
position.

Does anybody know a command which returns the position of the cell
([rowindex] and [columindex])?

Daniel (Brazil)
 

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