I want to include the following array formula in my code but get an object defined error?
Thanks in advance![]()
Range("AV3:AV" & SecondLastRow - 1) = "={SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))}"
I want to include the following array formula in my code but get an object defined error?
Thanks in advance![]()
Range("AV3:AV" & SecondLastRow - 1) = "={SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))}"
![]()
Range("AV3:AV" & SecondLastRow - 1).FormulaArray = "=SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))"
Last edited by AndyLitch; 04-09-2013 at 04:32 AM.
Elegant Simplicity............. Not Always
Thanks Andy but the AT3 part of the formula remains absolute and it needs to be relative?
The only thing i can think of then is to write the formula to AV3 and paste it down the column ??
This is the code I am trying to use but is not working?
Thanks in advance![]()
Range("AV3:AV3").Copy Range("AV3:AV & SecondLastRow - 1)
I am getting an error on the 2nd row??
![]()
Range("AV3:AV3").FormulaArray = "=SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))" Range("AV3:AV3").Copy Range("AV3:AV & SecondLastRow - 1")
Last edited by Aland2929; 04-09-2013 at 03:06 PM.
The error message is :Method range of Object Global failed
Thanks in advance
I think the problem is with the Paste part of the code but I can't figure it out? Would appreciate some help.
Thanks in advance
Try this
![]()
Range("AV3").FormulaArray = "=SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))" Range("AV3").Select Selection.Copy Range("AV3:AV" & SecondLastRow - 1).Paste
Thanks for your response Andy. I get the following error message relating to the last line of code:
[Object does not support this property or method]
Thanks in advance
I would appreciate any help with this as I have not been able to resolve it.
Thanks in advance
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks