Screen Updating Not Working

Bench

Board Regular
Joined
Aug 27, 2009
Messages
134
Hi,

I've recently had a problem where whenever i opened a certain workbook it went into AutoRecover Saving and stayed like that until it crashed.

As a workaround i added

Application.AutoRecover.Enabled = False to Workbook_Open

and

Application.AutoRecover.Enabled = True to Workbook_BeforeClose

This seems to have solved this problem, however now for every other routine (in all workbooks) that i run the Application.ScreenUpdating = False no longer works.

Any ideas?
 

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,553
Office Version
2013
Platform
Windows
I can see no connection between the autorecover setting and the screening updating setting.

It's probably something else going wrong. Possibly some other code somewhere is at cross purposes - you should step through your code in any case where its not working as expected, and execute your code line by line to inspect each line as it is executed. See here under step through the code for debugging instruction if you are not familiar with this technique.

As far as autorecover goes, I just turn it off - I save my work frequently as this is both a good habit and a good habit.

The workbook which is crashing on open may need to be repaired. Try opening it using "Repair" from the Open dialog options (you have to use File | Open from the Excel file menu, then right click on the side of the open button to see the open options). Copy the file first in Windows Explorer so you have a backup. You can also try finding what's wrong and fixing it if its some problem in the code. Or try rebuilding the workbook.
 
Last edited:

Bench

Board Regular
Joined
Aug 27, 2009
Messages
134
Hey, thanks for your reply, i'll check out those articles, i'm still learning so it all helps.

In the end it turned out that the problem was an add on called Sparklines for Excel that i'd installed at a similar time to writing the autorecover code, somewhere within a module in it it turned the screen updating back on so i just disabled the add on.

Thanks

Ben
 

Forum statistics

Threads
1,082,278
Messages
5,364,202
Members
400,786
Latest member
ismi88

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top