Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi all again !!! i got this error opening my page.. ============= run time error 1004 method 'ontime' of object '_application' failed ============= on this line ... Application.OnTime nTime, "RunTimer", , False .....if i dont set "error resume next" ....how can avoid it ?? This is all the macro.. tx for help !! Option Explicit Public nTime As Double ================================================== = Public Sub StartTimer() Dim aWB As Workbook Dim aWS As Worksheet Set aWB = ThisWorkbook Set aWS = aWB.Worksheets("Sheet1") On Error Resume Next Application.OnTime nTime, "RunTimer", , False '<<<<<<<<<<<<<< 'On Error GoTo 0 aWS.Range("O8").Value = 0 aWS.Range("G10").Calculate RunTimer End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
run time error 1004 general odbc error excel 2003 vba | Excel Programming | |||
Error when cell A1 is not active and xlInsideVertical border formatthrowing error 1004 | Excel Programming | |||
Error handling error # 1004 Run-time error | Excel Programming | |||
runtime error '1004' application or object defined error. Please help | Excel Programming | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming |