J
Jeff
Hi,
The following codes still return an "overflow" message. I need your help to
fix it. Thank you.
Private Sub Test_Click()
Dim NSD As Long
Dim CS As Long
Dim Total As Long
Dim NSDRate As Single
NSD = 0
CS = 0
Total = NSD + CS
NSDRate = IIf(Total = 0, 0, NSD / Total)
MsgBox NSDRate
End Sub--
Jeff
The following codes still return an "overflow" message. I need your help to
fix it. Thank you.
Private Sub Test_Click()
Dim NSD As Long
Dim CS As Long
Dim Total As Long
Dim NSDRate As Single
NSD = 0
CS = 0
Total = NSD + CS
NSDRate = IIf(Total = 0, 0, NSD / Total)
MsgBox NSDRate
End Sub--
Jeff