Mikil,
What is the exception that is being thrown?
Are you sure that is the line of code that is throwing the exception,
and that you aren't trying to access an object reference set to null?
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Mikil" <mi**********@gmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
I am communicating with Excel Interop dll using c#. The get_Range
function throws an exception if the parameters are invalid. For e.g.
get_Range("Mikil", Type.Missing); will crash if the "Mikil" named range
is not present.
Why the does the function crash instead of returning "null"?