+ Reply to Thread
Results 1 to 5 of 5

Select active row, plus next 21 rows down.

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Select active row, plus next 21 rows down.

    Hello,

    I am trying to select the active row and the next 21 rows down, so in all 22 rows should be selected after the macro runs.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Select active row, plus next 21 rows down.

    selection being one column by 22 rows? or entire row of selected cell plus 21?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Select active row, plus next 21 rows down.

    Try:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Contributor
    Join Date
    09-15-2012
    Location
    Jamaica
    MS-Off Ver
    Microsoft 365
    Posts
    244

    Re: Select active row, plus next 21 rows down.

    the first row, then the next 21 rows down. I have a macro to lookup and find a value in column "A", when it finds it, it also selects the row, i want that row, plus the next 21 rows going down selected.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Select active row, plus next 21 rows down.

    Then xladept nailed it

+ 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. Get number of rows in a active worksheet in a active workbook
    By tamahome90 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2012, 09:06 AM
  2. Replies: 1
    Last Post: 07-08-2012, 08:47 AM
  3. [SOLVED] VBA - Can I select a new active cell based on the value of the current active cell?
    By GrumpyOldBastard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 07:05 PM
  4. active dot select
    By sunshine076 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2010, 11:16 AM
  5. Select Active row
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2007, 07:49 AM

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