Consulting

Results 1 to 3 of 3

Thread: on each day, at 6am, the excel file will be opened by itself

  1. #1

    on each day, at 6am, the excel file will be opened by itself

    Hi,

    I think it may be impossible to create the macro below.
    The reason to ask is that I want to learn.



    Is it possible to create a macro which can perform the following tasks?

    on each day, at 6am, the excel file will be opened by itself, and a new sheet will be inserted.

    thanks

  2. #2
    VBAX Expert CatDaddy's Avatar
    Joined
    Jun 2011
    Posts
    581
    Location
    [VBA]Application.OnTime TimeValue("06:00:00"), "my_Procedure", Schedule:=True)

    'my_Procedure is the subroutine to run
    [/VBA]
    ------------------------------------------------
    Happy Coding my friends

  3. #3
    VBAX Expert CatDaddy's Avatar
    Joined
    Jun 2011
    Posts
    581
    Location
    this will not open the book by itself though...it should be done in conjunction with "Scheduled Tasks":

    Windows - Start>Programs>Accessories>System Tools>Task Scheduler

    Settings - Program to open (Excel), time (5 minutes before .OnTime), frequency (hourly, daily, monthly)
    ------------------------------------------------
    Happy Coding my friends

Posting Permissions

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