'ã»ã«ç¯å²"A1:B100"ã2åç®ããã¼ã«ãã¦æé ã«ã½ã¼ã Sub SortTest() Worksheets("Sheet1").Activate Worksheets("Sheet1").Range(Cells(1, 1), Cells(100, 2)) _ .Sort Key1:=Worksheets("Sheet1").Cells(1, 2),order1:=xlAscending End Sub 'ã»ã«ç¯å²"A1:B100"ã2åç®ããã¼ã«ãã¦éé ã«ã«ã½ã¼ã Sub SortTest() Worksheets("Sheet1").Activate Worksheets("Sheet1").Range(Cells(1, 1), Cells(100, 2)) _ .Sort Key1:=Worksheets("Sheet1").Cells(1, 2),order1:=xlDesce
{{#tags}}- {{label}}
{{/tags}}