BUG: RefEdit Control Does Not Work When Excel is Embedded in Some Containers (313102)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
This article was previously published under Q313102 SYMPTOMS When a Microsoft Excel worksheet is embedded in an object linking
and embedding (OLE) container and is in-place active, and a macro shows a
Visual Basic for Applications (VBA) dialog box that uses the RefEdit control, the RefEdit control may not work, and you may be unable to switch back to the
sheet to select cells.
The problem occurs when Excel is embedded in
some applications (such as Microsoft Word), but may not occur in other
applications. CAUSE When Excel is in-place active in an external application
and a VBA dialog box is displayed, Excel takes focus away from that application
and causes a WM_ACTIVATEAPP message to be sent to the main window of the host
application. The host notifies any active object of this event. In the case of
Excel, this temporarily disables the object window, making it unavailable to
the RefEdit control on the VBA dialog box. The control cannot switch back to
the sheet to allow the user to select cells. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
There are currently no workarounds for this issue.
MORE INFORMATION When Excel is not embedded and a VBA dialog box is
displayed, Excel does not change thread focus and the problem does not occur.
Also, if an OLE container does not call IOleInPlaceActiveObject::OnFrameWindowActivate when it receives a WM_ACTIVATEAPP message, the problem does not
occur. This is not a valid workaround, however, because this notification is
required, and failure to notify the object server of frame state changes can
lead to other improper OLE behavior. REFERENCESFor additional
information, click the article number below to view the article in the
Microsoft Knowledge Base: 281542 XL2000: RefEdit Control Does Not Work on Form in Com Add-In
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | kbbug kbInplaceAct kbpending KB313102 kbAudDeveloper |
---|
|