Results 1 to 4 of 4

Return row number of active cell

This is a discussion on Return row number of active cell within the Excel Questions forums, part of the Question Forums category; Could anyone help me with some vba code to give the row number that the current active cell is on. ...

  1. #1
    Board Regular
    Join Date
    May 2002
    Location
    Bristol, England
    Posts
    53

    Default Return row number of active cell

    Could anyone help me with some vba code to give the row number that the current active cell is on.

    Many thanks
    Roger Marshall

  2. #2
    MrExcel MVP fairwinds's Avatar
    Join Date
    May 2003
    Posts
    8,632

    Default Re: Return row number of active cell

    Hi,

    a = ActiveCell.Row
    "Fair Winds and Following Seas"

  3. #3
    MrExcel MVP parry's Avatar
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    3,355

    Default Re: Return row number of active cell

    Code:
    Sub RowNum()
    MsgBox "The active cell row is " & ActiveCell.Row
    End Sub

  4. #4
    Board Regular
    Join Date
    May 2002
    Location
    Bristol, England
    Posts
    53

    Default Re: Return row number of active cell

    Thank you for the lightening fast reply - I had a feeling it was quite simple but I don't quite know enough vba yet to figure it out.
    Roger Marshall

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DMCA.com