Solved

Excel screen not updating

Posted on 2014-11-21
5
139 Views
Last Modified: 2014-11-22
I have an Excel VBA application that process SKU numbers.  During the process, a form I have to show the user which item is being processed.  Suddenly, it has stopped updating after just the first 3 items.  Each item takes about a second or two.  Also, Excel and the caption on the form starts displaying "not responding".  I tried writing to the status bar, but it stops after the 3rd item also.  Another user has been complaining that his stops after 33 items.

What is going, and how do I fix it?
0
Comment
Question by:rrhandle8
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Simon
ID: 40459371
It could be a number of things. Can you post a sample of the workbook with any sensitive data removed?

If that's not possible, check the code for the form and any variables you have instantiated.
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40459380
This often is the result of On Error Resume Next set and an error occuring somewhere in the processing, rendering following actions to do either nothing or to trigger more errors (which are again ignored). First action to take is to comment that statement out, and then test again.
0
 

Author Comment

by:rrhandle8
ID: 40459856
"On Error Resume Next"? I'll keep my eye on that.
In this particular case, I forgot to add "DoEvents" inside the loop. Duh!
0
 

Author Closing Comment

by:rrhandle8
ID: 40459857
Not the problem, but I did not know this could also cause the problem I was experiencing.
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 40459932
DoEvents only allows processing of Winfows and application messages while still running VBA code. As soon as the code ends, everything left will be processed. I don't why this should cause issues, unless it is a very long running procedure.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Search Workbook, then move rows to new sheet 13 31
Excel 2016 - Black cell borders 11 27
Copy value from a certain cell 5 24
Excel macro runs twice 13 47
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

912 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

20 Experts available now in Live!

Get 1:1 Help Now