I keep getting error 6: overflow when my macro encounters a division error. Is there any way to account for a division error (i.e., division by 0) within the calculations below? Like maybe embedding an if statement?
Code:
dblGRAdminValue = -.Worksheets("MH-III (landscape)").Range("K42") / _
.Worksheets("MH-III (landscape)").Range("AW42") 'captures the GR Admin % value
dblMHBGAdminValue = -.Worksheets("MH-III (landscape)").Range("K47") / _
.Worksheets("MH-III (landscape)").Range("AW47") 'captures the MHBG Admin % value