Scheduling an excel data update and email best practices

Occasional Visitor

Hi, I have set up multiple spreadsheets over the years that pull data in from either a web page or SQL database.  I pull the data into a table and add some calculations to the right of the data.  In some workbooks data from one table is copied and pasted into a new sheet as a record of the prior weeks data points.  Then I either save the file and close, or email a view of the data to myself and/or some co-workers.  I'm being general, but in short these always work for a while then break.  I've started keeping an update log in the files and it seems if the notebook is opened/updated daily then it breaks about once a month.  By break I mean the file stops behaving correctly.  Cell formats are lost or some amount of data is note represented or updating correctly.  The file doesn't say it's corrupt.  Usually I am able to restore normal behavior by restoring a prior revision. 


This is regular enough create trouble but not a deterrent for creating these tools.  It's made me wonder if I'm doing something that is known bad practice.


I'm using Task Scheduler to open the given excel workbook around 5am.  And then the Auto_Open macro does the rest (updates, data copying, emails). File size isn't that large (1.1MB).  If my PC is off at 5am then Task Scheduler is set to run the next opportunity it gets and usually will about 5-10 minutes after I start up.


Looking for any general guidance to make my excel workbooks more reliable.

Am I asking one workbook to do too many things?

Is it expected that a workbook fails after too much use?  i.e. do issues just pile up in the background?

Is using Task Scheduler somehow related to the issues I see?



0 Replies