What is the correct way for PI to be used in VBA code? In the code below, I get an error message saying PI is zero:
I've declared PI as an integer. What am I doing wrong?
Code:
Range("D" & topRow + 1).Offset(2, 2).Value = (count / Pi) * Range("D" & topRow + 1).Value
I've declared PI as an integer. What am I doing wrong?