troubleshooting Question

Formula not stopping at end of populated row

Avatar of leezac
leezac asked on
Microsoft Excel
4 Comments1 Solution252 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)"
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
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 1 Answer 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