Groups
Sign in
Groups
Excel-DNA
Conversations
About
Send feedback
Help
Setting a Cell's Formula
95 views
Skip to first unread message
Chris Spicer
unread,
Sep 3, 2009, 5:57:06 PM
9/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ExcelDna
Hi,
Is it possible to set the formula of a cell through ExcelDna? By this
I mean through a menu driven macro function, rather than triggerd by a
UDF.
I notice that the C API supports xlset for quickly setting a value to
cell, but this doesn't seem appropriate for formulas.
Regards,
Chris Spicer
Govert van Drimmelen
unread,
Sep 4, 2009, 4:14:49 AM
9/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ExcelDna
Hi Chris,
You can try something like
XlCall.Excel(XlCall.xlcFormula, "=2+2", theReference)
References in the formula have to be R1C1-style.
Use XlCall.xlcFomulaArray for an array formula.
Hope this helps.
Govert
Chris Spicer
unread,
Sep 6, 2009, 11:30:12 AM
9/6/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ExcelDna
Excellent response as always Govert. Thanks for that.
Reply all
Reply to author
Forward
0 new messages