+ Reply to Thread
Results 1 to 4 of 4

Select Rows of MULTIPLE Selected Cells?

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    Amherst, MA
    MS-Off Ver
    2010
    Posts
    2

    Question Select Rows of MULTIPLE Selected Cells?

    Hey there--

    I'm relatively unversed in VBA and this could very well be a very simple function that I do not understand. I have found several scripts out there that are able to select the row of a given cell, I've been using the following one-

    Please Login or Register  to view this content.
    Now, it's my understanding that the ActiveCell is simply the last one selected, so if I attempt to "find all" entries with the year 2012 in them, and then run the above module, Excel will only select the last entry, as it considers this to be the active cell. Is there another term for all other selected cells when multiples are selected?

    I'd really appreciate any and all help on this.
    Last edited by Leith Ross; 07-02-2014 at 02:12 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Select Rows of MULTIPLE Selected Cells?

    Hello Reminisciences,

    Welcome to the Forum!

    The ActiveCell is defined as the the cell in the upper left corner of a selected Range. To return a Range of all the selected cells, use the Selection object.

    To select all of the rows of the selected cells, you can do this...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-02-2014
    Location
    Amherst, MA
    MS-Off Ver
    2010
    Posts
    2

    Re: Select Rows of MULTIPLE Selected Cells?

    Thank you Leith!
    I'm only on day two of trying to learn macros so I'll be sure to be using the resources here in the months ahead, and of course, trying to find questions already answered.
    All the best
    Remy

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Select Rows of MULTIPLE Selected Cells?

    Hello Remy,

    Did I answer your question? If so, please mark this post as solved. Thanks.

+ 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. Replies: 1
    Last Post: 04-19-2014, 10:13 AM
  2. [SOLVED] Select multiple cells with lowest number from multiple rows
    By NeilMcCauley in forum Excel General
    Replies: 14
    Last Post: 08-05-2012, 06:52 AM
  3. VBA: formatting cells in multiple columns based on selected rows
    By muckem333 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2011, 01:43 PM
  4. Select rows when multiple cells are selected
    By Chasethewind in forum Excel General
    Replies: 7
    Last Post: 01-18-2011, 01:33 PM
  5. Select and compare multiple cells within rows
    By AussieExcelUser in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2007, 10:56 AM

Tags for this Thread

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