I would suggest recording a macro that does all of the things you want it to do. Call the macro auto_Open. At the end of the macro, add: Activeworkbook.close SaveChanges:=true
save the workbook. Next, create a windows Scheduled task that will open this workbook at 5:00pm daily (or weekday) test it by changing the scheduled task to run a minute or two from "now". the workbook should open and run as directed and close when completed. What I have done in the past is create the macro and call it something descriptive. Then, in Auto_Open, check to see if the current workbook is from a specific path. for instance, I do the "development" and debugging in the file: \\ServerName01\project\reports\Development\Project_Summary.xls Once ready for use, I copy it to: \\ServerName01\project\reports\Batch\Project_Summary.xls Then, in Auto_Open (Or Workbook_Open) I check the file name: If (ActiveWorkbook.FullName = "\\ServerName01\project\reports\Batch\Project_Summary.xls") Then That way, I can still edit and debug the macro without it trying to run when I open the file. If you need more help with the macro itself, please record the steps and post the code. We'd be glad to look at it... Paul ________________________________ From: TAlgo <trading.a...@gmail.com> To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> Sent: Friday, July 17, 2009 11:19:45 AM Subject: $$Excel-Macros$$ Auto Run Macro - Copy data from multiple workbooks Hello, Something new for me so need some help : I' would like to have a macro which will extract data automatically and daily from multiple workbooks ( Source ) and copy to Master workbook ( target ) located under same network drive. Say around 5 pm EST macro should auto run and complete the above task on daily basis. I would like to copy column A from each source files and paste to Sheet 1 of Target file ( Can be in column A, B & C ) Source Files 1) G:\BIT\BM Projects 2004\FUT- Futures\OMS- Order Management System \FUTOMS-phases - eTD and TD\Reference Info\Active Users.xls 2) G:\BIT\BM Projects 2004\FUT- Futures\OMS- Order Management System \FUTOMS-phases - eTD and TD\Reference Info\Account Users.xls 3) G:\BIT\BMProjects 2004\FUT- Futures\OMS- Order Management System \FUTOMS-phases - eTD and TD\Reference Info\Inactive Users.xls Target File ( Master list ) G:\BIT\BM Projects 2004\FUT- Futures\OMS- Order Management System \FUTOMS-phases - eTD and TD\Reference Info\eTD Users.xls thx in advance --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 5,000 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---