Greater Kailash-1, New Delhi
Email pankaj...@gmail.com
Skype pankaj.sharma_pj
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
public static int MyFunction(string reference){
Range range = xlApp.Range[reference];
}
=MyFunction("A2:H21")public static object Concat(object[,] values)
{
string result = "";
int rows = values.GetLength(0);
int cols = values.GetLength(1);
for (int i = 0; i < rows; i++)
{
for (int j = 0; j < cols; j++)
{
object value = values[i, j];
result += value.ToString();
}
}
return result;
}public static int MyFunction([ExcelArgument(AllowReference = true)] object cell)
var xlApp = ExcelDnaUtil.Application as Application;
if (cell is ExcelReference reference)
{
Range target = ToRange(reference);
// ...
}
return 0;