Consulting

Results 1 to 5 of 5

Thread: VBA to automatically run

  1. #1

    VBA to automatically run

    what are my options to get VBA to automatically run?

    What I would really like is to have VBA to automatically run on a specific date - without having to open anything.

    From what I have found that does not seem possible.

    Can I get VBA to automaically run if I have excel open, but not a specific file?



    any help or suggestion are greatly appreciated

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    The OnTime method will do that.

  3. #3
    I did come across the OnTime method. can I apply that so that it works without having to open excel? If so, how and where can I apply it?

    Thank you

  4. #4
    VBAX Mentor
    Joined
    Feb 2009
    Posts
    493
    Location
    You could create a bat file to open an excel file and then use windows task manager to run the bat file. Then in your excel file use an auto_open macro to call your code.
    -----------------------------------------
    The more you learn about something the more you know you have much to learn.

  5. #5
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location
    i use Scheduled Tasks in XP to run a daily script twice a day.

Posting Permissions

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