Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Excel Doesn't Use Container's Name for Embedded Objects


View products that this article applies to.

Symptoms

Microsoft Excel does not display the name specified in the HostName property of the OLE control in its worksheet when an embedded worksheet object is opened. This behavior is exhibited by both the 16-bit and 32-bit versions of Microsoft Excel version 5.0.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

The following is from the Remarks section of the HostName topic in the Visual Basic help file:
"When editing an object, the HostName property setting may be displayed in the object's window title. However, some applications that provide objects don't display HostName."

Steps to Reproduce Behavior

  1. Start a new project in Visual Basic. Form1 is created by default.
  2. Add an OLE Client control to Form1. When the Insert Object dialog box appears, select Microsoft Excel 5.0 WorkSheet.
  3. Select the HostName property of the OLE control and set it to "My Server."
  4. Press the F5 key to Run the program.
  5. Right-click the OLE Client control, and choose Open.
The worksheet in Microsoft Excel displays "Book1" rather than "My Server."

↑ Back to the top


Keywords: KB129795, kbprogramming, kbprb

↑ Back to the top

Article Info
Article ID : 129795
Revision : 5
Created on : 2/12/2007
Published on : 2/12/2007
Exists online : False
Views : 496