This is not clear in the help section, but if you use an optional comparison argument, you also need to specify an optional initial argument to avoid a complaint about type mismatch.
So this maps 0 to MsgBox:
MsgBox InStr(1,"In Here", "here", vbBinaryCompare)
source
share