0 votes
in VBA by Beginner (2 points)
Without manual intervention,a macro should
by Beginner (0 points)

Be more specific when you want it to run.  Do you mean you want a macro to be run say every day at noon, even if spreadsheet is not open?  In that case you need to use something like Windows Task Scheduler, or a 3rd party equivalent tool.

Here are a couple of links to articles about using Task Scheduler

1 Answer

0 votes
by Skilled (401 points)

Have a look at this


And if you mean to run the macro when the workbook is already open try this code

Sub Run_Test_Using_OnTime()
    Application.OnTime TimeSerial(13, 35, 0), "Test"
End Sub

Sub Test()
    MsgBox "This Is Test Macro", 64
End Sub


Welcome to wellsr Q&A
wellsr Q&A is the VBA and Python programming community that rewards you for learning how to code.

Earn free prizes for asking VBA and Python questions and for answering questions asked by others in our community.

What makes us different?
Our points system rewards you with a chance for free gifts based on the quality of your questions and/or answers. Users that ask great questions, may be given complimentary gift cards or training material.

Getting Started

So, why don't you join us? It really is a neat way to reward the most dedicated members in our VBA and Python community.

For more programming tips visit the VBA Tutorials Blog and the Python Tutorials Blog.