You should use this pattern:
Sub my_Procedure()
MsgBox "hello world"
Call test ' for starting timer again
End Sub
Sub test()
Application.OnTime Now + TimeValue("00:10:00"), "my_Procedure"
End Sub
More Related Contents:
- to make this code simpler
- Excel VBA deleting rows in a for loop misses rows
- What is the lifetime of a global variable in excel vba?
- Download attachment from Outlook and Open in Excel
- What is the most efficient/quickest way to loop through rows in VBA (excel)?
- Embed picture in outlook mail body excel vba
- How to check for empty array in vba macro [duplicate]
- Use autofilter on more than 2 criteria
- What is the function of FormulaR1C1?
- Compiler Error: User-defined types not defined
- Vba Excel do vlookup from a closed file
- excel hyperlink to nothing
- How to add headers to a multicolumn listbox in an Excel userform using VBA
- How to send files via HTTP_POST with Excel using VBA?
- VBA to open Excel hyperlink does not work when hyperlink generated with a formula
- How to Add Date Picker To VBA UserForm
- Vba macro to copy row from table if value in table meets condition
- Difference between Thisworkbook.name and Activeworkbook.name in VBA
- Set a cell value from a function
- How to determine if a date falls on the weekend?
- What are the differences between using the New keyword and calling CreateObject in Excel VBA?
- Excel VBA wildcard search
- VBA Check if file (from website) exists
- Run-time error ’91’ (Object variable or With block variable not set)
- Calling regasm without administrative rights for COM interop in Excel VBA
- Is there a way for DIR(path) in VBA to handle strings longer than 260?
- How do I activate a specific workbook and a specific sheet?
- Start VBA macro when editing a cell
- VBA Run-time error 438 appears when “paste” runs
- If Not function proceeds when value *is* the one specified