How to Sort Excel File (2013) with 4 or 5 Keys in VBA

  • There is a requirement to sort 4 fields. The code is given below. Code runs without any error. However, rows are not sorted as required. Need your help - is there any error in the below VBA code.


  • rory

    Added the Label Cross Post
  • You have already posted this question on several forums, and been warned about cross-posting:


    Sorting 4 Keys of Excel file
    There is a requirement of 4 key fields to be sorted in Excel file (2013). Given below is the code. But not getting the desired results. Need your help to…
    stackoverflow.com

    https://www.myonlinetraininghub.com/excel-forum/vba-macros/how-to-sort-excel-file-2013-with-4-or-5-keys-in-vba

    How to Sort Excel File (2013) with 4 or 5 Keys in VBA

    How to sort excel file (2013) with 4 or 5 Keys in vba
    I have a requirement to sort an Excel file (2013) with 4 keys / 5 keys. The following vba code is not working and at the same time not throwing any error too.…
    www.mrexcel.com


    All without any acknowledgement of the help you have received so far.


    Please read our rules and follow them, or you will not be welcome here.

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Thanks for the support. I am totally new to any of these forums and out of curiosity and interest, posted this query in more than 1 forum. Got answer through one of the forum and thanks all for the support. Please excuse me for this error and assure that this will not be repeated.

  • You had at least two answers before you even posted here, neither of which you had acknowledged in any way. You should be aware that a lot of people post in multiple forums so this sort of behaviour does not go unnoticed and will often prevent you actually getting any further help.

    Rory
    Theory is when you know something, but it doesn’t work. Practice is when something works, but you don’t know why. Programmers combine theory and practice: nothing works and they don’t know why

  • Welcome to the Forum. Please read the Forum Rules to understand how the Forum works and why I have added Code Tags to your post


    All VBA code posted in the forum must be wrapped in code tags, which you omitted, including single-line code snippets.Be sure to use them in future posts.


    How to use code tags


    Just highlight all of the code and press the <> in the post menu above button to add the code tags.


    Thanks.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!