application.ontime not working

barbikus1978

New Member
Joined
Dec 12, 2019
Messages
4
Office Version
  1. 2007
Platform
  1. Windows
pls, help me,

i've got this sub:

Sub dashboard()

dTime = Now + TimeSerial(0, 0, 10)

Application.OnTime dTime, "dashboard"
Application.ScreenUpdating = False
Application.DisplayAlerts = False

Call OpenAllAkcurateFiles

End Sub

as U can see, im using application.ontime, BUT... :( when i start sub OpenAllAkcurateFiles independently (solo), everything is running ok, no problem. When I start sub dashboard(), it still crash on error, than macros is not allowed in this file, BUT again, i allowed macros everywhere in excel, where is it possible (Options, Macro settings, i changed registers in windows, but still no works... :(
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I believe you must call a different SUB otherwise it is going to repeat itself over and over.
 
Upvote 0
What exactly is the error message?
 
Upvote 0
hello RoryA,
i will try to translate:

Macro:"path.......\dashboard12122019.xlsm" cannot start. Macro shouldnt be allowed in this sheet or all macros are denied.


Hope, u know which error it is.
 
Upvote 0
Which module is the dashboard routine in?


Perfect, it hepls !!! THX for offthelip, too. This was a problem. It was in module This Workshees, mfckr. I copyied every subs to new Module, and it works. Good job friends..
 
Upvote 0

Forum statistics

Threads
1,215,878
Messages
6,127,506
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top