We value your feedback.
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.
|VB6 - Convert HH:MM into Decimal||8||75|
|VBA - Excel, Hide/unhide range of rows on sheet with listbox selection||9||125|
|Macro to copy formulas to the column direcly to the right and maintain the same range.||2||44|
Join the community of 500,000 technology professionals and ask your questions.