Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lbound errors

Status
Not open for further replies.

bhas

Programmer
Mar 17, 2004
30
US
when i try to run this script i get an error like 'type mismatch' for lbound.
any one knows why?

Function Check_Val(ByRef arrArray)
Dim row , j
For row = LBound(arrArray) To UBound(arrArray) - 1
For j = row + 1 To UBound(arrArray)
If arrArrray(j) <> arrArray(row) Then
Check_Val = arrArray(row)
Exit Function
End If
Next
Next
Check_Val = ""
End Function

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top