1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【エクセルVBA】ソート処理

Posted at

VBAにおけるソート

 ・エクセルVBAにはソート機能がない。
 ・ソート機能をするには
  1.ソートデータをシートに転記する。
  2.Range.Sortを使用する。
  3.シートからソートデータを削除する。

Range.Sortの使い方

  ' Key : 対象列, Order : Asc/Desc , Header, 1行スキップするか 
  tempSheet.Range("A1").CurrentRegion.Sort _
    Key1:=Range("A1"), _
    Order1:=xlDescending, _
    Header:=xlNo

参考リンク

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?