Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
what is wrong ?
Private Sub Command3_Click() Dim FileName As String If cboBids.ListIndex <> -1 Then FileName = GetPathToCboItem(cboBids.Text) End If I keep getting a type mismatch Function GetPathToCboItem(cboName As String) As String Dim i As Integer Dim strParts() As String For i = LBound(mArrProjects) To UBound(mArrProjects) strParts = Split(mArrProjects(i), "\") If UBound(strParts) = cboName Then ' [b]type mismatch here[/b] GetPathToCboItem = mArrProjects(i) Exit Function End If Next End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.