Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / June 2006

Tip: Looking for answers? Try searching our database.

FormulaR1C1 error on a SUMIF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Gallagher - 22 Jun 2006 18:42 GMT
I am getting an error on the last line of the following:

   Selection.AutoFilter Field:=19, Criteria1:="<>"
   Selection.AutoFilter Field:=1, Criteria1:="1000"
   Selection.AutoFilter Field:=4, Criteria1:="<>1000", Operator:=xlAnd
ActiveSheet.UsedRange.Select
   Selection.Copy
   Sheets.Add
   Sheets("Sheet1").Activate
   Range("A1").Select
   ActiveSheet.Paste
   Application.CutCopyMode = False
Worksheets("Sheet1").Range("T1").FormulaR1C1 = "comp%"
Worksheets("Sheet1").Range("T2").FormulaR1C1 =
"=SUMIF($D$2:$D$1035,D2,$J$2:$J$1035)"

If I try the code with a simple formula it works. Is there a limitation to
this property or can someone suggest an alternative?
Bob Phillips - 22 Jun 2006 19:38 GMT
Worksheets("Sheet1").Range("T2").Formula =
"=SUMIF($D$2:$D$1035,D2,$J$2:$J$1035)"

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> I am getting an error on the last line of the following:
>
[quoted text clipped - 14 lines]
> If I try the code with a simple formula it works. Is there a limitation to
> this property or can someone suggest an alternative?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.