+ Reply to Thread
Results 1 to 3 of 3

macro to sort varying number of rows

  1. #1
    Registered User
    Join Date
    12-26-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    macro to sort varying number of rows

    Hi!
    I need help creating an Excel macro that will select (highlight) a varying number of rows, beginning with row 2. The number of rows to be selected will always be defined in cell K1. For example, if cell K1 contains the value 24, the macro would select rows 2:25. If the value of cell K1 is 14, the macro would select rows 2:15.

    If it makes any difference, I'm using Excel 2003. Anyone out there that can help me with this?

    Thanks, in advance!
    Kathy

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Need macro for sorting varying number of rows

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    12-26-2009
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need macro for sorting varying number of rows

    Thank you! That worked beautifully! Of course, you already knew it would work, but I am grateful for the quick reply!

    Thanks!
    Kathy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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