P
PeCoNe
Hi There,
I am working with W7 64 bit and Excel 2010 NL and encounters the
following problem:
F8 gives: After the first 2 if's the program continues with if Time >
F5 gives:
Fout -2147417848 (80010108) tijdens uitvoering
Methode Range van object_Worksheet is mislukt
Why is that?
Private Sub Worksheet_Calculate()
With Sheets("Monitor")
If Time() > .Range("BEGtime") Then
If .Range("FTItime") > .Range("BEGtime") Then
.Range("CURtime") = .Range("FTItime")
.Range("CURprice") = .Range("FTIprice")
If IsEmpty(.Range("LOWtime")) Then
.Range("LOWprice") = .Range("CURprice")
.Range("LOWtime") = .Range("CURtime")
End If
If IsEmpty(.Range("HGHtime")) Then
.Range("HGHprice") = .Range("CURprice")
.Range("HGHtime") = .Range("CURtime")
End If
If .Range("CURprice") < .Range("LOWprice") Then
.Range("LOWprice") = .Range("CURprice")
.Range("LOWtime") = .Range("CURtime")
End If
If .Range("CURprice") > .Range("HGHprice") Then
.Range("HGHprice") = .Range("CURprice")
.Range("HGHtime") = .Range("CURtime")
End If
End If
End If
End With
End Sub
How and where can i solve that?
I am working with W7 64 bit and Excel 2010 NL and encounters the
following problem:
F8 gives: After the first 2 if's the program continues with if Time >
F5 gives:
Fout -2147417848 (80010108) tijdens uitvoering
Methode Range van object_Worksheet is mislukt
Why is that?
Private Sub Worksheet_Calculate()
With Sheets("Monitor")
If Time() > .Range("BEGtime") Then
If .Range("FTItime") > .Range("BEGtime") Then
.Range("CURtime") = .Range("FTItime")
.Range("CURprice") = .Range("FTIprice")
If IsEmpty(.Range("LOWtime")) Then
.Range("LOWprice") = .Range("CURprice")
.Range("LOWtime") = .Range("CURtime")
End If
If IsEmpty(.Range("HGHtime")) Then
.Range("HGHprice") = .Range("CURprice")
.Range("HGHtime") = .Range("CURtime")
End If
If .Range("CURprice") < .Range("LOWprice") Then
.Range("LOWprice") = .Range("CURprice")
.Range("LOWtime") = .Range("CURtime")
End If
If .Range("CURprice") > .Range("HGHprice") Then
.Range("HGHprice") = .Range("CURprice")
.Range("HGHtime") = .Range("CURtime")
End If
End If
End If
End With
End Sub
How and where can i solve that?