--
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 view this discussion visit https://groups.google.com/d/msgid/exceldna/331b90b7-fee4-4cd5-bd26-6f3e65c2400cn%40googlegroups.com.
Hi Stefan,
It works fine for me, even keeping it as a Range variable.
Here is a test project: govert/TestFormula2
This is the macro:
<ExcelCommand(MenuName:="Test Formula2", MenuText:="Write Formula", ShortCut:="^F")> ' Ctrl+Shift+F
Public Sub WriteFormula()
Dim xlApp As Application = ExcelDnaUtil.Application
Dim rangeA1 As Range = xlApp.Range("A1")
rangeA1.Formula2 = "=RANDARRAY(3,4)"
End Sub
What do you see when you try this project?
-Govert
To view this discussion visit https://groups.google.com/d/msgid/exceldna/7d009c63-9994-4c8f-a58d-5d0fc2953665n%40googlegroups.com.