VBA compile error if Instr function used with named parameter and return value assigned to variable
问题 Background : In VBA, ' InStrRev ' function can be called without or with named parameters. 'Call without named parameters Call InStrRev("AB", "B") 'No compiler error i = InStrRev("AB", "B") 'No compiler error 'Call with named parameters Call InStrRev(StringCheck:="AB", StringMatch:="B") 'No compiler error i = InStrRev(StringCheck:="AB", StringMatch:="B") 'No compiler error Concern : In VBA, the compiler returns "Expected: list separator" error if ' InStr ' function : Is called with named