+ Reply to Thread
Results 1 to 3 of 3

Return row number of selected cell

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    37

    Return row number of selected cell

    Hello, could somebody post a script that inputs the row number of the selected cell in cell F7 please? For example, if cell G5 is the active cell, cell F7 would read '5'; if W10 is the active cell, cell F7 would read '10', and so on.

    Thanks in advance!
    Last edited by zanguard80; 12-08-2014 at 06:32 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Return row number of selected cell

    Range("D7").Value=ActiveCell.Row
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-02-2014
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    37

    Re: Return row number of selected cell

    Quote Originally Posted by protonLeah View Post
    Range("D7").Value=ActiveCell.Row
    Thanks, it works, but it isn't updating automatically when I click on different cells in the sheet. What needs to be added?

    Edit: Never mind—I figured it out.

    Please Login or Register  to view this content.
    Last edited by zanguard80; 12-08-2014 at 07:04 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Return Row and Column Number of Selected Cells in Worksheet
    By mybest in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2014, 12:56 PM
  2. [SOLVED] Return Cell Address for Active/Selected Cell
    By magicaces84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 11:56 AM
  3. [SOLVED] Return Selected Cell to Cell A1 on Every Sheet/Tab - VBA Macros
    By Jason Carlos in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-01-2014, 08:50 PM
  4. Return the content of a user selected cell.......THX
    By FireTheft in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-16-2012, 07:18 AM
  5. Return selected cell from Combo box
    By Jollyfrog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2010, 01:27 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1