Good Morning,
I would appreciate some help with troubleshooting my formula in vba
I am trying to sum a range of cells as follows:
lastYrOSHA = Application.WorksheetFunction.Sum(Cells(39, 10), Cells(eRow, 10))
where eRow is the last row which is calculated using another formula (erow = 32 currently)
the sum formula is returning a value of 1 and it should be 8
If I use the exact cell reference in a select Range formula it selects the range fine
Range(Cells(39, 10), Cells(eRow, 10)).Select
Why is it returning a value of 1 when the sum of these cells is 8
Thank you,
Mike
Bookmarks