Excel encountered an error and had to remove some formatting to avoid corrupting the workbook.
In Microsoft Excel 2013, Microsoft Excel 2010, or Microsoft Excel 2007, files may produce the following error message:
The following scenarios are also associated with styles:
- When you open a file, all the formatting is missing.
- The file size grows after you copy and paste between workbooks.
- When you try to paste text, you receive the following error message:Microsoft Excel can't paste data
In this scenario, all menu options to paste and the Ctrl+V keyboard shortcut are ignored and produce no results although the Clipboard is not empty.
Note If two or more cells share the same formatting, they use one formatting combination. If there are any differences in formatting between the cells, each cell uses a different combination.
In Excel, style counts may increase when you copy between workbooks because custom styles are copied.
A workbook that has more than 4,000 styles may open in Excel 2007 and later versions because of the increased limitation for formatting. However, this can cause an error in Excel 2003.
Method 1To prevent built-in styles from being duplicated when you copy a workbook, make sure that you have the latest updates for Excel installed from Windows Update.
Method 2The following Knowledge Base articles discuss how to prevent copying custom styles between workbooks in one instance of Excel when you move or copy a worksheet.
Note These article require you to install and add a registry key.
2598127 Unused styles are copied from one workbook to another in Excel 2010
Method 3To clean up workbooks that already contain several styles, you can use one of the following third-party tools.
Excel formats (xlsx, xlsm)Binary Excel formats (xls, xlsb), workbooks protected by a password, and encrypted workbooksNote You can also download a copy of XLStyles Tool for Windows 10, Windows 8.1, and Windows 8 from the Microsoft Store.
Method 4Simplify the formatting of your workbooks. For example, follow these guidelines to simplify formatting:
- Use a standard font. By using the same font for all cells, you can reduce the number of formatting combinations.
- If you use borders in a worksheet, use them consistently.
Note The borders between cells overlap. For example, if you apply a border to the right side of a cell, you do not have to apply a border to the left side of the adjacent cell to the right.
- If you apply patterns to cells, remove the patterns. To do this, open the Format Cells dialog box, click the Patterns tab, and then click No Color.
- Use styles to standardize the formatting throughout the workbook.
Makale No: 213904 - Son İnceleme: 5 Eki 2015 - Düzeltme: 1