PRB: Paste Option Disabled when Clipboard Holds Excel Range (156236)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q156236 SYMPTOMS
The general field of a Visual FoxPro table holds an object such as a Word
document or an Excel worksheet. This kind of object may be embedded in or
linked to a general field by programming or manually by copying the object
to the Clipboard, then pasting it into the general field.
You may want to save to a general field only a portion of an Excel
worksheet--for example, a range of cells without all of the other data from
that worksheet.
After you select the range and copy it to the Clipboard, if Excel is still
open, OLE with Excel embeds the entire Excel worksheet when you use the
Paste or Paste Special menu options to embed or link into the general field
of a Visual FoxPro table. You must close Excel in order to use just the
range of cells on the Clipboard.
However, when the Clipboard contains the data of a range of cells of an
Excel worksheet and Excel is closed, the Paste and Paste Special bars of
the Visual FoxPro Edit menu are disabled.
CAUSE
When the Clipboard contains the data within a range of cells of an Excel
worksheet, that data is not an object but, rather, is text. Because it is
not an object, the Paste and Paste Special bars of the Edit menu are not
enabled.
WORKAROUND
Insert an blank worksheet into the general field, then paste the data from
the Clipboard into that sheet.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | KB156236 |
---|
|