Question : Error - Excel could not save all the data and formatting you recently added to myfile.xla ...

Hi Experts,

I'm really hoping someone has got a solution here ... I've got a pretty complicated xla with an enormous amount of work behind it that has started throwing off this error when saved:

"Excel could not save all the data and formatting you recently added to myfile.xla.
- To return to your workbook without saving click Cancel.
- If you want to continue saving changes without repairing the problem, click OK."

Clicking Cancel (despite the language to the contrary) brings up a "Save as" Dialog with the file type selected being "xls" even though it is an xla file with "IsAddin" set to true (the file name is listed as "myfile.xla" with the quotes around it but the selected file type is still "xls"). However, after pressing Escape to exit the "Save as" Dialog without saving and then exiting Excel, the xla's Modified date in Windows Explorer inidcates that the file WAS saved despite what the error message indicates would happen.

Clicking OK clears the message immediately - i.e., there's no hesitation to indicate that the file (about 2.5 MB) was THEN being saved ... seemed more like it had already been saved at that point.

Clicking Help brings up a blank help page.

I've tried:  1) Taking my personal.xls file out of the mix, 2) with Excel closed, deleting all Temp files (that would delete) in both my Temp folders; I've run: 3) Rob Bovey's CodeCleaner, 4) excel.exe /unregserver followed by excel.exe /regserver, and 5) Detect and Repair - no joy with any of them.

And what's really strange is that when I start reverting back to previous backup files (that did NOT exhibit this behavior when they were saved earlier) ALSO start throwing the same error now.  But trying to save another (different) Addin works ...

http://support.microsoft.com/default.aspx?scid=kb;en-us;215783 says: "This error message appears when you have applied conditional formatting to more than 2,050 rows. This is a limitation in the way that Excel saves information about your file."  But while I didn't remember having used conditional formatting in this xla (and they are not essential to the functioning of same), I did find a sheet where I had apparently once used conditional formatting, but the conditional formatting references now referred to "Cell value" "is not equal to" =#REF!  At any rate, I had not added any such references in many, many months and the number of rows in this sheet were only 181.  Nevertheless, I selected all of the sheets in the xla and ran an ASAP Utilities macro that deleted any conditional formatting throughout the workbook.  Still no joy.

I'm stumped (and worried ...).

Any ideas about what I could have run into here (and how to fix it)?

Jeff

Answer : Error - Excel could not save all the data and formatting you recently added to myfile.xla ...

>As far as UDF's, yeah, I do have quite a number of them, but none on them added recently
UDFs are funny animals. They can work OK for some time and then start causing problems. I recently discovered that I can make Excel start behaving very badly if I execute UDFs that, using range references stored in variables, reference cells in other worksheets. Excel won't crash right away, but some really weird stuff starts happening like cells displaying content from neighboring worksheets. You might try disabling your UDFs and see if that helps. Easiest way to do that is to put "Exit Function" at the beginning of each.

>About the only thing I've been working on for the last week or so has been developing some custom Cell, Row, Column and Full Screen Toolbars
Yes, you and toolbars. My nightmare ;-) Have you tried deleting the xlb file? See notes below for details.

>I guess I'll see if I can locate my Excel CD(s) - I upgraded to 2003 from 2000 - and give a Re-install a go
Make sure you do a complete uninstall first (see instructions below). Just a reinstall is usually not worthwhile.

Here are the Excel repair instructions I post now and then:

On rare occasions Excel can become unstable and start exhibiting unwanted behavior, crashing, or not even starting. Below are several steps to take to try and get Excel back to a stable state. Try to reproduce the problem after each step and, if resolved, there is no need to continue to the next step.

Step 1 - Repair the Excel Installation

This option is only available in Excel 2000 and later. To repair the Excel installation, start Excel and choose the menu command Help->Detect and Repair. The product CD may be required.

Step 2 - Remove/Reset the Tool Bar Configuration File

Reset the toolbar settings file by deleting the Tool Bar Configuration File while Excel is not running. This file is usually located in the folder

   C:\Documents and Settings\Your Login Name\Application Data\Microsoft\Excel

and is named "Excel *.xlb".

Step 3 - Reset the Registry Entries

Instruct Excel to reset the Excel registry entries. Do this by opening the Start menu and selecting Run. Enter "Excel.exe /RegServer" and click OK.

Step 4 - Clear the Option Settings

Run RegEdit (Start->Run, enter "regedit", and press ENTER) and navigate to HKEY_CURRENT_USER\Software\Microsoft\x.0\Options where x is 9 for Excel 2000, 10 for Excel 2002 or XP, and 11 for Excel 2003. Delete all entries except for "(Default)".

Step 5 - Remove Custom Add-Ins

Remove any custom add-ins from the XLStart folder and the folder that is specified in the "At startup, open all files in" box on the General tab in the Options dialog box. A custom add-in is any Excel workbook created by the user and saved as an Add-In in an Excel startup folder.

Step 6 - Reinstall/Remove Third Party Add-Ins

This step involves looking for and removing third party add-ins until all add-ins have been dealt with and either removed or determined to not be the cause of the problem. Adobe Acrobat and Norton Anti-Virus are known to have conflicts with Excel. Upgrading to the latest version of these programs usually solves most problems.

The easiest way to remove an add-in is to, from within Excel, choose the menu command Tools->Add-Ins. In the Add-Ins available box, clear the check box next to the add-in to unload and click OK. To remove the add-in from the menu, restart Excel.

To completely remove an add-in use the add-in manufacturer's uninstaller. Uninstallers are found in the Add or Remove Programs control panel.

Without an uninstaller, completely removing an add-in from a computer is possible but not easy. First look in all known XLSTART folders. The most common locations of these folders are:

   C:\Program Files\Microsoft Office\Office11\Xlstart
   C:\Program Files\Microsoft Office\Office10\Xlstart
   C:\Program Files\Microsoft Office\Office\Xlstart
   C:\Documents and Settings\User Name\Application Data\Microsoft\Excel\XLSTART
   C:\Winnt\Profiles\User name\Application Data\Microsoft\Excel\Xlstart
   The folder that is specified in the "At startup, open all files in" box on the General tab in the Options dialog box.

Look for any file that might be the add-in. After quitting Excel, move the targeted file to another location (do not delete it until sure it is the desired add-in.) Start Excel and confirm that the add-in is removed. If not, return the moved add-in to the original XLSTART folder and try again with another.

Some add-ins are not stored in XLSTART folders and are loaded into Excel using Registry entries. If the correct Registry entry can be found then it can be used to locate and delete the add-in. The Registry entry should also be removed but only after making a backup of the Registry and confirming that the add-in identified is the correct add-in. The most common Registry locations where add-ins are located are:

   HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Add-in Manager
   HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Excel\Options (add-ins are listed in the OPEN and OPENn entries)
   HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Add-in Manager
   HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options (add-ins are listed in the OPEN and OPENn entries)

Step 7 - Completely Remove and Reinstall Excel/Office

This is the most drastic measure and, if done correctly, is the last possible step short of tossing the box out the window. The idea behind completely removing an Office/Excel installation is to purge any and all files and registry entries that might be causing the problem. The normal Office/Excel uninstaller function is not designed to do this. Each version of Office/Excel has different procedures for complete removal. These are listed by version below.

Office 2003
There is no official documented technique for completely removing Office 2003. Open the Add or Remove Programs control panel, locate Microsoft Office, and click Remove. Additional steps follow below to manually purge Office remnants.

Office 2002/Office XP
There is no official documented technique for completely removing Office 2002/Office XP. Open the Add or Remove Programs control panel, locate Microsoft Office, and click Remove. Additional steps follow below to manually purge Office remnants.

Office 2000
Run this cleanup utility: http://support.microsoft.com/kb/239938/en-us.
Run this cleanup utility: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q247674&ID=KB;EN-US;q247674

Office 97
Follow these instructions: http://support.microsoft.com/default.aspx?scid=kb;en-us;254250.
Run this cleanup utility: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q176823.

After completing the above instructions for the specific version of Office, do the following:

Run this cleanup utility to clean up Windows Installer remains for Office: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301&Product=offxp

Open the Registry (click Start and select Run, enter RegEdit and click OK) and navigate to HKEY_LOCAL_MACHINE->Software->Microsoft and delete the "Office" node.

Open Windows File Explorer, navigate to C:\Program Files and delete the "Microsoft Office" folder.

Download, install, and run CCCleaner (http://www.ccleaner.com). Caution: This utility clears the browser cache so, if that is NOT desired, make sure that option is off or all saved website cookies will be removed. Cookies contain login status, preferences, etc. Select Cleaner and click Run Cleaner. Select Issues and click Scan for Issues. If any issues are listed make sure they are all checked and click Fix selected issues. Save a copy of the registry if desired. Click Fix All Selected Issues when the first confirmation prompt is displayed. Repeat scanning and fixing issues until no new issues are found.

Reinstall Office.

Kevin
Random Solutions  
 
programming4us programming4us