Results 1 to 20 of 20

How to Sort Rows by dynamically determining first and last row

Threaded View

  1. #1
    Registered User
    Join Date
    03-01-2016
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    54

    How to Sort Rows by dynamically determining first and last row

    I have a worksheet that has a few rows of header information. I'd like to give those rows a name of "DashboardHDR".
    I'd like to locate the FIRST ROW after that named range of rows.
    Then I'd like to locate the final row by looking in column B for BLANKS and then the previous row is the LAST ROW.
    Then I'd like to sort from FIRST ROW to LAST ROW, ascending, on the value in column F.

    Bonus Question: Column F header value is "Work Type". The last row in "DashboardHDR" contains the header text. Would it be possible to designate the sort column by locating the column associated with header text = "Work Type"?

    I have to give full disclosure ... I am not an Excel programmer. I am a programmer (C, assembler/mainframe, pltpf/sabrtalk, VBA). I've done some VBA coding for Access, but fully self-taught. So, I have a little knowledge and know what I want to do ... a dangerous combination.

    My goal: create a macro and a button on the worksheet to sort the detail rows on the sheet by a particular column, regardless of how many rows of detail data there is.

    Thanks, in advance, for any assistance.
    Last edited by slbrick; 03-31-2017 at 12:08 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Dynamically sort a pivot table
    By smls in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-09-2020, 01:58 AM
  2. sort dynamically and automatically by color
    By EYALIN in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-21-2015, 06:14 AM
  3. [SOLVED] Dynamically adding rows to a sort
    By Montyb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-25-2013, 12:57 AM
  4. Replies: 1
    Last Post: 01-21-2013, 01:57 AM
  5. Logic for dynamically determining cell value
    By BrianKusch in forum Excel General
    Replies: 4
    Last Post: 02-28-2012, 07:22 PM
  6. Select Data Dynamically and then Sort
    By rvc81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2010, 08:28 AM
  7. Dynamically determining when a month ends
    By Moomancow3k in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-11-2006, 07:00 PM

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