Current Row?

  • Thread starter Thread starter Chrome
  • Start date Start date
C

Chrome

Hi, i'm new to excel programming, and so this is probably really simpl
but how can i find out what row is currently selected?

what i want to do is copy the text from column 1 on sheet1 to a textbo
on sheet3.

i've been trying debug.print Sheet1.Cells.Row but it always returns 1
Please help :confused:

thanks, sam
 
Hi
This macro stored in the ThisWorkbook object will display the current
selection row:

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
MsgBox Selection.Row
End Sub

Regards
Andrew B
(e-mail address removed)
 

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