Consulting

Results 1 to 4 of 4

Thread: Auto opening excel

  1. #1
    VBAX Regular
    Joined
    Feb 2006
    Posts
    28
    Location

    Auto opening excel

    Hi,What options do I have to use excel as a "Service" i.e. run every night at 12am? the version of xp i am using is a work version and is locked down very tightly. what i mean by tightly is that i cannot even view the clock properties!!!!!Thanks

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    You can just leave Excel open all night and set up some code to run. Something like this:

    [vba]
    Option Explicit

    Private Sub Workbook_Open()

    Application.OnTime TimeValue("00:00:00"), "Macro1"

    End Sub
    [/vba]

    When you open the workbook (This could be a specific workbook or personnal.xls) this code will run and tell Excel to run the macro "Macro1" at midnight.

  3. #3
    VBAX Regular
    Joined
    Mar 2006
    Posts
    44
    Location
    Presumably you don't have access to scheduler in that locked down state?

  4. #4
    VBAX Regular
    Joined
    Feb 2006
    Posts
    28
    Location
    Hi,

    Afraid not, infact i don't even have access to the C:\ drive!

    Thanks

    C19

Posting Permissions

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