View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
mudraker[_164_] mudraker[_164_] is offline
external usenet poster
 
Posts: 1
Default Cell formulas with VB

Yes



Dim i As Integer
Dim s As String

s = "Dan"
i = 504
Range("A2:A90").FormulaArray = "=SUM((" & s & "!$E$1:$E$" & i &
"="""")*(" & s & "!$B$1:$B$" & i & "=A2))"


Also your formula has a circular reference to A2


---
Message posted from http://www.ExcelForum.com/