File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,22 @@ public static string NativeOptionalDouble(double d = 1.23)
297297| A1 | =NativeOptionalDouble(2.3) | Native Optional VAL: 2.3
298298| A2 | =NativeOptionalDouble() | Native Optional VAL: 1.23
299299
300+ ## Range parameter
301+
302+ ``` csharp
303+ [ExcelFunction ]
304+ public static string NativeRangeAddress (IRange r )
305+ {
306+ return " Native Address: " + r .Get <string >(" Address" );
307+ }
308+ ```
309+
310+ | Cell | Formula | Result
311+ | ----- | ------------------------------- | ------
312+ | A1 | =NativeRangeAddress(B2) | Native Address: $B$2
313+ | A2 | =NativeRangeAddress(B2: C4 ) | Native Address: $B$2:$C$4
314+ | A3 | =NativeRangeAddress((B2,D5: E6 )) | Native Address: $B$2,$D$5:$E$6
315+
300316# Not supported functionality in native add-ins
301317
302318Loading images for ribbon controls.
You can’t perform that action at this time.
0 commit comments