LoginSignup
0
1

More than 1 year has passed since last update.

VBScriptで配列の重複を削除する関数を作成してみた

Last updated at Posted at 2021-05-04

EXcel VBAやVBScriptで配列の重複を削除する必要があり下記関数を作成しました。

辞書型を使うことで,重複文字列を除外しています。

Function DeleteDupulicate(RamArray)
    Set Dic = CreateObject("Scripting.Dictionary")
    On Error Resume Next
    For i = 0 To UBound(RamArray)
        Dic.Add RamArray(i), RamArray(i)
    Next
    DeleteDupulicate = Dic.Keys
End Function
0
1
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
0
1