Hi,
To verify that a workbook has a certain origin, I need to check for a CustomDocumentProperty that is always being set upon creation of the workbook.
However, if I just try to set it like:
string = ActiveWorkbook.CustomDucomentProperties(“LookMeUp”)
and the Prop doesn’t exist, I just get an ‘error 5’ (“Invalid procedure call or argument”) in return.
As ‘error 5’ is rather generic and can occur in multiple other situations, I’m reluctant to use it here.
Would anyone know of another better way to catch or workaround this kind of situation??
TIA