+ Reply to Thread
Results 1 to 7 of 7

Sort Problem

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Sort Problem

    Hi,

    I have problem when sorting.
    I want to sorting by column AA, then I just need the top 5 data.
    How I do it with VBA?
    You can see data and result in the attachment.

    Thanx for helping me.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-29-2010
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel XP, Excel 2003, Excel 2007
    Posts
    27

    Re: Sort Problem

    Hi,

    You can record a macro with the built-in macro recorder for these actions. Then open the macro and refine it to suit your needs.

    Boris

  3. #3
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Sort Problem

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Sort Problem

    pls check the range as I took only from you sheet...

    many thanks
    Rishi Saw

  5. #5
    Registered User
    Join Date
    08-28-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sort Problem

    If the range always change (data always change every month), that means i must change the macro every time i used that?

    Thanx

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Sort Problem

    Hi rainbowzzzzz,
    try it
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-28-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sort Problem

    Hi Nilem,

    It's work perfectly.

    Thanx for ur help.

+ 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. [SOLVED] Problem with sort through VBA
    By Bob Berg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2012, 01:40 PM
  2. sort problem
    By Shira in forum Excel General
    Replies: 1
    Last Post: 02-12-2008, 06:23 PM
  3. Sort Problem
    By sposdog in forum Excel General
    Replies: 2
    Last Post: 08-23-2007, 03:43 PM
  4. Sort Problem
    By andyp161 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-07-2005, 12:05 AM
  5. [SOLVED] sort problem with first row
    By smokiibear@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2005, 11:05 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