Consulting

Results 1 to 8 of 8

Thread: I Need Help Vba Code Automatically Sort Rows Largest To Smallest

  1. #1

    I Need Help Vba Code Automatically Sort Rows Largest To Smallest

    Hi
    I Need Help Vba Code Automatically Sort Rows Largest To Smallest IF Cell G > 50% And Cell D > 1%
    Attached Files Attached Files

  2. #2
    Please help me

  3. #3
    I need edit this code work automatically


    Sub sort()
    '
    ' sort Macro
    Selection.sort Key1:=Range("N7"), Order1:=xlDescending, Header:=xlGuess, _
    OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
    DataOption1:=xlSortNormal

    End Sub
    Last edited by etheer; 02-21-2014 at 01:58 PM.

  4. #4
    VBAX Tutor
    Joined
    Jan 2008
    Posts
    262
    Location
    What would the output look like based on your example? Where are the rows that don't match the criteria put?
    sassora

  5. #5
    i want this code work automatically

    Sub sort()
    '
    ' sort Macro
    Selection.sort Key1:=Range("N7"), Order1:=xlDescending, Header:=xlGuess, _
    OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
    DataOption1:=xlSortNormal

    End Sub

  6. #6
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,645
    It's no use to post the same code twice.
    Please use codetags if you post VBA-code & read the forum rules !

    I get the impression your expectations do no match the function of a forum: the forum is not meant to provide free, easy solutions but is meant to help you to devise your own solutions. Basically you have to do the fundamental coding yourself. Don't post copied code (or unadapted recorded code) from elsewhere asking 'can you adopt it to my goal'.

  7. #7
    i am sorry snb

  8. #8
    VBAX Tutor
    Joined
    Jan 2008
    Posts
    262
    Location
    If I wanted to be blunt, I would say that your code does enable to you sort descending values automatically. Can you please assume we aren't stupid and think about the information we might need to help you. Snb is right, you should at least have a willingness to learn, I don't think that this is the case here.

    I'm not keen to further reply to this thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •