- Код: Выделить всё
Dim a(5) As String
a(0) = "aaa"
a(1) = "bbb"
a(2) = "ccc"
a(3) = "ddd"
a(4) = "eee"
a(5) = "fff"
Debug.print Filter(a, "04051960")
выдаёт ошибку 13
Спасибо
Dim a(5) As String
a(0) = "aaa"
a(1) = "bbb"
a(2) = "ccc"
a(3) = "ddd"
a(4) = "eee"
a(5) = "fff"
Debug.print Filter(a, "04051960")
Dim a(5) As String, b() As String
a(0) = "aaa"
a(1) = "bbb"
a(2) = "ccc"
a(3) = "ddd"
a(4) = "eee"
a(5) = "fff"
b = Filter(a, "f")
For i = LBound(b) To UBound(b)
Debug.Print b(i)
Next i
Debug.print Filter(a, "04051960")(0)
Friend Function Filter(ByVal Value As String, ByVal Search As String) As String
End Function
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 190