How did I know from your test data?
"='C:\[sumif_countif.xls]Sheet1'!M8" - closed precedent CORRECT
"='[Test with Notes.xls]TestData'!D22" - open other wb ERROR
"='Ext Links 2'!F32" - same wb other sheet ERROR
The string parsing routine Post #29 defined a "reference to a closed workbook" as any sub-string that begins with the pattern ' (anything) '!
VBA:
testString Like " '*"! ' " : Rem spaces added for clarity
VBA tags courtesy of
www.thecodenet.com
The two failed cases both involved sheet names with spaces, which has a syntax that matches that definintion.
To exclude that situation, the post #31 correction "defines" a "reference to a closed workbook" as any sub-string that
begins with ' (anything) ] (anything) '!
VBA:
testString Like " '*]*"! ' " : Rem spaces added for clarity
VBA tags courtesy of
www.thecodenet.com
It turns out that that is not specific enough. The correction below defines "external reference" as any sub-string that begins with
apostrophy (required, any character except [) (anything) ] (anything) '!
VBA:
If testStr Like "'[![]*]*'!*" Then
VBA tags courtesy of
www.thecodenet.com