troubleshooting Question

Formula not stopping at end of populated row

Avatar of leezac
leezac asked on
Microsoft Excel
4 Comments2 Solutions252 ViewsLast Modified:
the line for total.formula is entering a sum in ALL of the rows in the column - not just the one with a value.  I need for it to just populate the row with a value in A2.  Can someone help please.

Application.Calculation = xlCalculationManual
Set r = Sheet19.Range("A2:D2")
Set headr = Sheet19.Range("A2:D2")
Set dest = Worksheets("Exceptions").Range("A2")
Set total = Sheet19.Range("A2")
Set total = Range(total, total.End(xlDown)).Offset(0, 4)
total.Formula = "=sum(B2:D2)"
ASKER CERTIFIED SOLUTION
Faustulus

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros