+ Reply to Thread
Results 1 to 3 of 3

VBA: Sort and report to a form

  1. #1
    Registered User
    Join Date
    03-25-2009
    Location
    San Jose
    MS-Off Ver
    Excel 2007
    Posts
    83

    VBA: Sort and report to a form

    Thanks to everyone that has been helping me with this project so far, and this forum in general has solved many more issues than I ever expected to encounter, fantastic resource.


    Finally, on the final stretch towards completion.

    From the sample file, I am using the data on (start) worksheet.

    (Sort and report sheet)
    I'm after a reporting routine that I want to run on the launch of a Userform. What it would do in an ideal world is when I click the "launch report" (command) button in Excel, it would look at a sheet (start), and extract the top 5 values from the sheet, both for the overall list, and the top 5 values per unique name, then returns that data to the Userform for viewing only.
    Attached Files Attached Files
    Last edited by D3Pratt; 04-30-2009 at 10:18 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: VBA: Sort and report to a form

    Hi

    See how the attached file goes.

    rylo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-25-2009
    Location
    San Jose
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: VBA: Sort and report to a form

    Thanks for the reply!

    Turns out I marked the wrong thread solved :\

    I actually solved this using a combination of Sort and advanced Filter. I don't have the code in front of me to post it up.

    In summary I recorded a macro then tweaked it. The end result was a series of mini-macros strung together as the core of a userform initialize, I got the exact result I needed. It works, not very elegant, and I'm sure there is about 40% bloat in the code. But like I said, it works.

+ 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