If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Application.OnTime not firing!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-10-11, 14:20
lijon lijon is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
Application.OnTime not firing!

Hi folks, Could really use some help with app.ontime here. I've got the following code in a single wkbk ...but it doesn't work!
Pls let me know what you think! Gracias!

..in "ThisWorkbook"
Code:
Private Sub workbook_open()
    Application.ScreenUpdating = False
            Application.OnTime TimeSerial(10, 28, 0), "refresher"        
    Application.ScreenUpdating = True
End Sub
...in Module15
Code:
Sub refresher()
    
Dim data As Variant
Dim output()
Dim I As Integer
Dim y As Integer

Application.ScreenUpdating = False
Range("New_1030").ClearContents

data = Range("PRICES")

I = UBound(data, 2) ' cols
y = UBound(data, 1) ' rows

ReDim output(y, I) 
output = data

Range("New_1030").Resize(y, I) = output 

ReDim output(y, I)
Application.ScreenUpdating = True
     
End Sub
Reply With Quote
  #2 (permalink)  
Old 03-11-11, 07:20
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
It fires for me, at 10:28, provided the workbook is still open. Is that the time you want it to run at?
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On