共用方式為


Excel) (Sort.SetRange 方法

設定排序發生的範圍。

語法

表達。SetRange (Rng)

代表 Sort 物件的變數。

參數

名稱 必要/選用 資料類型 描述
Rng 必要 Range 指定 Sort 物件所代表的排序發生的範圍。

注意事項

SetRange can only be used when applying a sort to a sheet range, and cannot be used if the range is within a table.

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應