+ Reply to Thread
Results 1 to 3 of 3

Run Macro at specified time

  1. #1
    Registered User
    Join Date
    11-28-2008
    Location
    India
    Posts
    1

    Run Macro at specified time

    Hi

    I want to run a macro at specified time suppose 2.30 pm.

    I have two clarrification(featues) regarding this : (1) Can this timed macro
    run even if the workbook is closed (2) Workbook is placed in share drive.

    If someone can help me with the macro having both the features then I would
    really apprecite his efforts.

    Thanks, SS
    Last edited by VBA Noob; 11-28-2008 at 12:55 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can't run a macro if the workbook is closed, maybe open it with Windows Scheduler

    To run a macro at a specific time use the ONTime method, do a search of the Forum there's several examples posted.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    One note when using the OnTime method if you do not pass the variable to close the timer your workbook will constantly re-open.
    Not all forums are the same - seek and you shall find

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1