Solved

Excel program hangs overnight

Posted on 2014-11-15
11
122 Views
Last Modified: 2014-11-15
I have a Excel/VBA program that updates items at our Amazon store.  Works find, but because it takes so long, I added an auto run feature.  I enter the time I wish it to run into a cell, then click a button that calls a Sub that sets the time.  Works great.  The problem is when I try to run it overnight.  It starts run at the exact time it is set to start, but when running it over night, it hangs at some point.  Normally it takes 3 hours to the whole process to complete.

Any suggestion for what might be causing it to hang overnight?
0
Comment
Question by:rrhandle8
  • 4
  • 4
  • 3
11 Comments
 
LVL 93

Expert Comment

by:John Hurst
ID: 40444477
Is the worksheet local to the machine or on a network?  Please let us know.

If on a network, is there network downtime in the server profile, network backup, etc. ?  

Is the process running on Amazon Web Services?  or another server?  Please let us know.

If local, is there a backup running?  Yes / No ?

Any machine should run overnight, so there is probably a process stopping the run.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40444479
If you are using a timer it will reset itself to zero at midnight.
0
 

Author Comment

by:rrhandle8
ID: 40444494
John,
It is running on a local pc.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 93

Expert Comment

by:John Hurst
ID: 40444497
In addition to Martin's suggestion on timers, look at Task Scheduler (Windows Admin Tools) and see what processes are kicking off overnight.

Is the computer set to suspend?
0
 

Author Comment

by:rrhandle8
ID: 40444499
Is there a log on the pc that will show me what processes ran overnight?  I think John's suggestion is correct.
0
 
LVL 46

Assisted Solution

by:Martin Liss
Martin Liss earned 250 total points
ID: 40444502
Do you have any ScreenSaver Power or Energy Saver settings set that would shut down your system at midnight?
0
 

Author Comment

by:rrhandle8
ID: 40444507
MartinLiss -- Yes I do.  I guess that is the first place to start.
0
 
LVL 93

Accepted Solution

by:
John Hurst earned 250 total points
ID: 40444508
You can look in Windows Event Log, all processes and look starting at 11:50pm going forward into the next day.

Also look at Task Scheduler (where stuff like this originates).
0
 

Author Closing Comment

by:rrhandle8
ID: 40444514
Thank you both.  Good suggestions!
0
 
LVL 93

Expert Comment

by:John Hurst
ID: 40444520
@rrhandle8  - You are very welcome and I was happy to help here.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40444539
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question