Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Array Formula cell via Excel VBA

Dear All,

I know that we can add a formula to a cell in VBA by:

Range(myRange).Formula = "=SUM(iRange)"

....but can anybody help me with an Array Formula? ... eg.. something
like

Range(myRange).Formula = "{=SUM((...)=...)*(....))}"

This obviously doesn't work... but is there a solution?

Regards,

andym

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Array Formula cell via Excel VBA

use FormulaArray instead of Formula to enter an array formula

--


Gary


"andym" wrote in message
ups.com...
Dear All,

I know that we can add a formula to a cell in VBA by:

Range(myRange).Formula = "=SUM(iRange)"

...but can anybody help me with an Array Formula? ... eg.. something
like

Range(myRange).Formula = "{=SUM((...)=...)*(....))}"

This obviously doesn't work... but is there a solution?

Regards,

andym



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Array Formula cell via Excel VBA


Try
Range(myRange).FormulaArray = "=SUMetcetc

Hope this helps

Steel Monke

--
Steel Monke
-----------------------------------------------------------------------
Steel Monkey's Profile: http://www.excelforum.com/member.php...fo&userid=2905
View this thread: http://www.excelforum.com/showthread.php?threadid=57365

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Array Formula cell via Excel VBA

Gary,

fantastic!!! How easy was that!!!!

Regards,

andy..




Gary Keramidas wrote:
use FormulaArray instead of Formula to enter an array formula

--


Gary


"andym" wrote in message
ups.com...
Dear All,

I know that we can add a formula to a cell in VBA by:

Range(myRange).Formula = "=SUM(iRange)"

...but can anybody help me with an Array Formula? ... eg.. something
like

Range(myRange).Formula = "{=SUM((...)=...)*(....))}"

This obviously doesn't work... but is there a solution?

Regards,

andym


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
Cell format for an array formula containing text Pete Excel Worksheet Functions 2 April 15th 09 08:56 PM
Array Formula - Average from every other cell Oscar Munero Excel Discussion (Misc queries) 7 June 18th 08 10:08 AM
Multi-Cell Array Formula SteveMax Excel Worksheet Functions 5 June 14th 07 02:22 AM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Excel Programming 0 July 27th 05 03:59 PM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM


All times are GMT +1. The time now is 07:40 PM.

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

About Us

"It's about Microsoft Excel"