I have a sheet with two separate tables - need to sort them by Column B, separately. The VBA I have combines the two tables and sorts them into one table.
Need:
Sub PO_CSV_Multi()
'
' PO_CSV_Multi Macro
'
Columns("E:F").Select
Selection.Delete Shift:=xlToLeft
Columns("I:J").Select
Selection.ColumnWidth = 11.38
Range("B18", Range("J" & Rows.count).End(xlUp).Address).Sort Key1:=[b3], _
Order1:=xlAscending, Header:=xlNo
End Sub
Need:
- Sort Column B from "1" to the last number in the set (example: Table 1 from 1-6; Table 2 from 1-4)
- The only constant is "1" to indicate the start of the table
Sub PO_CSV_Multi()
'
' PO_CSV_Multi Macro
'
Columns("E:F").Select
Selection.Delete Shift:=xlToLeft
Columns("I:J").Select
Selection.ColumnWidth = 11.38
Range("B18", Range("J" & Rows.count).End(xlUp).Address).Sort Key1:=[b3], _
Order1:=xlAscending, Header:=xlNo
End Sub