Solved

Excel program hangs overnight

Posted on 2014-11-15
11
118 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 90

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 45

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
 
LVL 90

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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 45

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 90

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 90

Expert Comment

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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 the scrolling table in Microsoft Excel using the INDEX function.

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now