+ Reply to Thread
Results 1 to 3 of 3

Select Row within a range object

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    New Zealand
    Posts
    41

    Select Row within a range object

    This is no doubt a newbie question.

    I have a subroutine which is parsed a range of unknown size.

    I am searching the first column to find a value and when I find it I want to Select the row that this value is in, e.g. rRng (20x5) has 'Fred' in row 5, col 1.
    I want to Select all of rRng row 5.

    Note that I don't want to Select the whole row in the worksheet that the range is in. Just the row in the parsed range.

    Seems dead simple but I can't find the answer.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    Rhapsodie,

    Please post your macro code.

    At the beginning of your posted code, enter the following without the quote marks:
    ["code"]


    Your code goes here.


    At the end of your posted code, enter the following without the quote marks:
    ["/code"]


    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    rRng.Rows(5).Select
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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