Programatically Entering an Array Formula

  • Thread starter Thread starter John C.
  • Start date Start date
J

John C.

I have a form that provides the user many options.

Once form has been completed, based on that information, I
wish to enter a formula into a worksheet cell using VBA.

Could someone share the syntax for doing this?
 
activeCell.Formula = "=Sum(A1:A10)"

if, as your subject implies, you want an array formula

ActiveCell.FormulaArray = "=Sum((B1:B10=""A"")*(C1:C10=""B"")*D1:D10)"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top