XL: Text Formatting Not Pasted from Other Application

Last reviewed: March 27, 1997
Article ID: Q131103
5.00 5.00c 7.00 WINDOWS kbinterop

The information in this article applies to:

  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SYMPTOMS

In Microsoft Excel, when you paste information from another application, such as Microsoft Word, formatting that is applied to the information you copied is not pasted in Microsoft Excel. For example, if you copy text in Microsoft Word that is formatted with Times New Roman font, bold formatting, and the color red, when you paste the text in Microsoft Excel, the text appears in your Normal style font, not bold, in Automatic color.

CAUSE

This behavior occurs because Microsoft Excel does not support pasting Rich Text Formatting (RTF), even though Rich Text Formatting is supported in cells. You can, for example, format a word in a cell as Times New Roman, Bold, 15 point, green, while the rest of the text in the cell is Arial 10 point.

Note that formatted text is supported when you copy information in Microsoft Excel and paste it to Microsoft Word or another application.

WORKAROUNDS

To work around this behavior, you can use any of the following methods:

Method 1: If the application you are pasting from supports OLE, you can

          paste the information as an object. For example, you can paste
          information from Microsoft Word as a Microsoft Word Document
          object. The object then retains all formatting.

Method 2: Format the information AFTER you paste it to the worksheet in
          Microsoft Excel.


KBCategory: kbinterop
KBSubcategory: xlwin

Additional reference words: 7.00 5.00 5.0c clipboard
Keywords : xlwin kbinterop
Version : 5.00 5.00c 7.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 27, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.