Greetings,
I am running into an overflow error and seeking assistance in how to handle. The line giving me trouble is below:
The E variables are integer values, while the "A" columns are DATE values of the type. The B variable is an integer value.
I think my question is how to maintain the B variable as an integer while including date variables of the MMDDYYYY type as a basis for the slope value. I would like to find the number of days between the date values as the denominator of the equation.
Thanks!
I am running into an overflow error and seeking assistance in how to handle. The line giving me trouble is below:
Code:
B = (wsPA.Cells(K, "E").Value - wsPA.Cells(RowLoop1, "E").Value) / (wsPA.Cells(K, "A").Value - wsPA.Cells(RowLoop1, "A").Value)
The E variables are integer values, while the "A" columns are DATE values of the type. The B variable is an integer value.
I think my question is how to maintain the B variable as an integer while including date variables of the MMDDYYYY type as a basis for the slope value. I would like to find the number of days between the date values as the denominator of the equation.
Thanks!