Every call of this Function results in a Runtime Error ’13’ Type Mismatch. Why does this happen?
Public Function VersionExists(versionId As String)
VersionExists = False
For Each cell In Tabelle2.Columns(1)
If cell.Value = versionId Then
VersionExists = True
End If
Next
End Function
Here is an alternative as I suggested in the comment