I would like to take the function name, Argument name and value from Excel cell using c#.net
How to use Excel "Function Argument" Dialog in C#.net.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 11, 2010, 2:47 AM EST
Following code will help you in calling formula to the relative cells in excel using function. see following code:
//Fill C2:C6 with a relative formula (=A2 & " " & B2).
oRng = oSheet.get_Range("C2", "C6");
oRng.Formula = "=A2 & \" \" & B2";
//Fill D2:D6 with a formula(=RAND()*100000) and apply format.
oRng = oSheet.get_Range("D2", "D6");
oRng.Formula = "=RAND()*100000";
oRng.NumberFormat = "$0.00";
Mark the answer if it helps.
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 11, 2010, 2:54 AM EST
you can go to the following article:
http://support.microsoft.com/kb/302084
i hope it'll help you a lot. so don't forget to mark it