Checking for the Variant value “Nothing”
This is something I ran into last year, and SO seems like a good place to document it :) Q: When automating Excel (/Word/...) from Delphi, how can I check if an Excel function returned the variant Nothing (as it's called in VBA)? Rob Kennedy The VarIsClear function includes your situation where the type is varDispatch and the value is nil . It also includes empty and "unknown" values, and custom variant types. I see it in my Delphi 2005 source; I don't know how much earlier it was included. onnodb Curiously, VBA's Nothing is not the same as Unassigned , Null or Empty , so you can't use, e.g.: