ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   get_Range function throws an exception (https://www.excelbanter.com/excel-programming/362419-get_range-function-throws-exception.html)

Mikil

get_Range function throws an exception
 
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"?



All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com