+ Reply to Thread
Results 1 to 4 of 4

Excel timed automation..

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Question Excel timed automation..

    Hello,
    Ok, here it goes..
    Every morning I run a batch file that moves .txt files from one system to another.
    Once the .txt files are moved, they are sorted within excel VIA. marco’s.
    Is there a way to kick these macro’s off within the excel sheets without having to open them? I have no idea and I could be just dreaming here, but it sure would be nice. One thing I encounter while running these macros is a pop-up message asking if I want to update other sheets that are linked.
    So am I dreaming or could this be possible?
    If it is possible to run the macros automatically, then I can work on the automation of the batch file.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Tortus,

    The macros can only run if the workbook they are in is open. It is a security measure. You can however turn the messages off asking to update the links.

    Turning Off Update Link Messages
    1. With the workbook open, Click on Edit > Links... on the main menu bar.
    2. A dialog titled Edit Links will be displayed.
    3. In the bottom left corner click the button Startup Prompt...
    4. Choose the bottom option button labeled Don't display the alert and updates the links

    Sincerely, Leith Ross
    Attached Images Attached Images

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Macro's cannot run unless the workbook they are in is open


    Can you have your batch file open Excel & a specific workbookwhen it has finished moving the files around

    The opened workbook could contain a Workbook_Open macro that will run everytime the book is opened.


    Another option is to have a master macro that moves the files & then opens the other books to run the macro's as required
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    Well, I have to log in to a separate system to run the batch file. For security network security reasons, I can’t place the excel workbooks on that system. I might be able to give the batch file a path to another drive that is a VPN link between the two systems and in that path I could maybe have a simple marco to Chdir and open the other workbooks. Wow... that’s confusing, but that helped me somewhat. If I can get this to work, I'll repost. Thanks!

+ 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