+ Reply to Thread
Results 1 to 5 of 5

Open and Close Excel / Time Running

  1. #1
    Registered User
    Join Date
    07-06-2007
    Posts
    8

    Open and Close Excel / Time Running

    I want to write a code that either opens excel or a workbook in excel and runs my code at a certain time everyday of the week (the computer will stay on). Please let me know if you have an idea on how to do this. I would prefer to not have to open up Excel at all if at all possible. Thanks so much.

  2. #2
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    Use TaskScheduler to run the workbook and place some code in your workbook open event to run the macro.

    One down side to this is you will have to set macro security to low or else you will have the macro dialog box show when opening the workbook.
    Reafidy.

    Tip: When using code and disabling events/screen updates/calculation be sure to use an error handler to turn them back on if an error occurs.

  3. #3
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    What are you trying to acheive anyway?

  4. #4
    Registered User
    Join Date
    07-06-2007
    Posts
    8

    hmmmm

    I have an automated report that has to run 7 days a week at 2am. Where is taskscheduler? And will that allow me to open and close excel or just a workbook in excel and am I able to set a time for the code to run using that? Thanks so much

  5. #5
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    You can use task scheduler to open either a workbook in excel or excel on its own.

    Task scheduler is found under start - programs - accessories - system tools

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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