Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Programatically Entering an Array Formula

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programatically Entering an Array Formula

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)"

--
Regards,
Tom Ogilvy

"John C." wrote in message
...
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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entering an array formula wthawaii Excel Worksheet Functions 2 August 28th 07 01:54 PM
entering formula in a numeric array EO Excel Discussion (Misc queries) 0 October 26th 06 03:49 PM
entering as an array Alfonso Excel Discussion (Misc queries) 0 October 5th 06 04:48 PM
Entering Array Functions Jaytee Excel Discussion (Misc queries) 1 August 28th 05 04:11 PM
entering individual array formulas with vba tom[_5_] Excel Programming 3 January 6th 04 10:44 AM


All times are GMT +1. The time now is 08:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"