James_Latimer
Active Member
- Joined
- Jan 20, 2009
- Messages
- 415
Hello,
I have an issue that i cant get my head around. I have a formula on a sheet: =AD504/AD503 which returns #Div/0!
However if i use the following vba i get an answer...
The values showing are:
V1: 6.706849E-312
V2: 6.022279E-316
Result: 8.979298E-05
Can anyone throw me a bone please? I'm confused as to why the front end is throwing the error. The cell type is set to 'Number' with 4 decimal positions.
Thanks in advance
I have an issue that i cant get my head around. I have a formula on a sheet: =AD504/AD503 which returns #Div/0!
However if i use the following vba i get an answer...
Code:
Sub hjklasdfasdfad()
Dim V1 As Double, V2 As Double
V1 = ActiveSheet.Range("AD503").Value
V2 = ActiveSheet.Range("AD504").Value
MsgBox(V1)
MsgBox(V2)
MsgBox (V2 / V1)
End Sub
The values showing are:
V1: 6.706849E-312
V2: 6.022279E-316
Result: 8.979298E-05
Can anyone throw me a bone please? I'm confused as to why the front end is throwing the error. The cell type is set to 'Number' with 4 decimal positions.
Thanks in advance