この関数を呼び出すたびに、ランタイムエラー「13」タイプの不一致が発生します。なぜこれが起こるのですか?
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