VBA summing function

  • Thread starter Thread starter Jase
  • Start date Start date
J

Jase

Hi, I am trying to sum a dynamic range with some code but if that range has
"value in it the sum function does not work. I want to exit the function if
if it is unable to sum. Any ideas? heres the code I am using:

Sheets("data").Range("B446").Value =
Application.WorksheetFunction.Sum(Worksheets("data").Range("B" &
Sheets("graphs").Range("D267").Value _
& ":B" & Sheets("graphs").Range("D268").Value))

thanks,

Jase
 
Back
Top