+ Reply to Thread
Results 1 to 5 of 5

Record Macro for Custom Sort not Working as I need...

  1. #1
    Registered User
    Join Date
    06-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2010
    Posts
    15

    Post Record Macro for Custom Sort not Working as I need...

    Hello every one,
    I have recorded a macro (gave a shortcut key "Ctrl+q") for custom Sort by column "F" and Sort order "From Smallest to Largest", I selected 6 columns and 5 rows ("F4:F10"), and stopped this Macro.
    Please Login or Register  to view this content.
    Now the problem is when I select different range and apply this macro but this is not working on my new selected range. I want this type of Sort to other selected range too, I have more than 2000 rows and want to select different range every time which is column "A" to "F" and different rows numbers(6 or 7 0r 8).
    If anybody knows how to do that I'll be thankful for that.
    Thanks.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Record Macro for Custom Sort not Working as I need...

    So will you be selecting the range and then running the sort macro?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Record Macro for Custom Sort not Working as I need...

    Quote Originally Posted by arlu1201 View Post
    So will you be selecting the range and then running the sort macro?
    Yes I select the range which I want to sort next then I apply macro which I recorded.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Record Macro for Custom Sort not Working as I need...

    Try this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-24-2012
    Location
    Home
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Record Macro for Custom Sort not Working as I need...

    Quote Originally Posted by arlu1201 View Post
    Try this
    Please Login or Register  to view this content.
    Hi Arlu1201,
    Yes this is working good as I need, Thanks for your good help.
    You saved my time.
    Thanks again.

+ 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