multiple sort

  1. A

    VBA - Sorting Multiple Columns by Header's Names

    Hi Guys! I have the code below to sort my table, but this sheet is downloaded from a system and the columns change position from time to time. Is there a way to execute the code below using header's names? Range("A1").CurrentRegion.Sort _ key1:=Range("AY1"), Order1:=xlAscending, _...
  2. B

    Multiple Sporting Macro - VBA

    Hi! I am very new to this forum and have beginner level VBA skills. I have spreadsheet with A-L columns and 121 rows "A7:L121" is the entire range of the dataset. I want to have a shortcut through a macro that will sort based on the following criteria: Sort the "status" column (C) (It's either...
  3. M

    Sort muliple columns by named or dynamic range

    Hi All, I have a macro that will sort rows 8 to 57 by columns D, E, and F Sub Sortcolums() Dim rCount As Long rCount = Evaluate("COUNT(" & ActiveSheet.Name & "!D8:D57)") With ActiveSheet.Sort With .SortFields .Clear .Add Key:=Range("D8").Resize(rCount)...
  4. H

    Sort Method: Run time error

    Hello! I've spent a while now looking online for a solution to my problem, but I'm still getting the same error. I have a range in a worksheet (LAYOUT) that I want sorted first by column B ascending then by column C ascending. I do NOT want to select or activate the worksheet, if that is...
  5. R

    Multiple Filter/Sort

    My plan is to develop a list and sort it using filter. So when sorted there would be a number of rows with columns of the same information (i.e. half a column of "Walmart"s). But the idea would be to sort the data with the "Walmart"s only after that, so another column would be organized without...

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top