LoginSignup
0
0

More than 1 year has passed since last update.

ExcelVBA 2次元配列の指定した行で文字列を検索して列を返す関数

Posted at
'--- 2次元配列の指定した行で文字列を検索して列を返す関数 ---
Private Function Return_Column_From_2Darray(ByVal Item, ByVal row, ByRef arr() As Variant)
    Dim i As Long

    For i = 1 To UBound(arr(), 2)
        If arr(row, i) = Item Then
            Return_Column_From_2Darray = i
            Exit For
        End If
    Next i

End Function
0
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
0
0