Hi All, I am trying to run the below macro code in the attached file. Code is running properly since i am not getting any error message. But i am getting in Row D2 to H2 "TRUE" and not the calculation value.
Option Explicit Sub SumifsFormula() ' ' SumifsFormula Macro ' Sumifs Formula for calculating current month total ' ' Range("D2").Select ActiveCell.FormulaR1C1 = _ "SUMIFS(D$3:D$200,$C$3:$C$20," > "&EOMONTH(MAX($D$3:$D$20),-1))" Range("D2").Select Selection.Copy Range("D2:H2").Select ActiveSheet.Paste Application.CutCopyMode = False Calculate End Sub Please help on this macros. Regards, kaushik savla -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel
Sumifs.xlsm
Description: Binary data