Forum Discussion

Rachel1994's avatar
Rachel1994
Copper Contributor
Jun 13, 2022
Solved

VBA Format data as table and filter

Hello!   I'm writing a macro to make a data output look nicer for users. I have formatted the data as a table, and now I want to sort the data on two things: first Supplier Name, then Product Descr...
  • Rachel1994 

     

    Does this work for you?

    tbl.Range.Sort key1:=Range("C1"), order1:=xlAscending, key2:=Range("D1"), order2:=xlAscending, Header:=xlYes

     

     

Resources