+ Reply to Thread
Results 1 to 2 of 2

Running a macro on file open

  1. #1
    Registered User
    Join Date
    07-22-2004
    Posts
    8

    Running a macro on file open

    Hi

    I am going to use scheduled tasks to open a file at the end of each day. I then want it to run a macro to refresh the data it contains.

    I can get the file to open at the scheduled time, but how do I get the macro to run on file open?

    Many thanks

    Tom

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can use the following event macro
    Private Sub Workbook_Open()
    to be stored in ThisWorkbook module ...
    HTH
    Carim


    Top Excel Links

+ 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