command to return the row number or cell number in excel?

  • Thread starter Thread starter desmondleow
  • Start date Start date
D

desmondleow

Can anyone tell me the code to return the row and column of the cel
where i am in for VBA
 
Hi Desmondleow,
Can anyone tell me the code to return the row and column of the cell
where i am in for VBA?

Msgbox "Row number is:" & Activecell.Row
Msgbox "Column number is:" & Activecell.Column

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com
 

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