返回列表 上一主題 發帖

[發問] 使用者定義的字串排序

回復 5# 爆肝達人
  1. Sub test()
  2.     Dim arr
  3.     arr = Array("麻辣", "麻麻", "天天", "開開", "欣欣")
  4.     Application.AddCustomList listArray:=arr
  5.     n = Application.CustomListCount
  6.     er = [A65536].End(3).Row
  7.     Range("A9:C" & er).Sort Key1:=[B9], OrderCustom:=n + 1
  8.     Application.DeleteCustomList n
  9.     Set arr = Nothing
  10. End Sub
複製代碼

TOP

        靜思自在 : 唯其尊重自己的人,才更勇於縮小自己。
返回列表 上一主題