OLEData Property

Applies To

ActiveX control, Unbound Object Frame control.

Description

You can use the OLEData property to copy data from one unbound object frame to another or from one ActiveX control to another.

Setting

controlname.OLEData

The OLEData property uses the following settings.

Setting

Description

controlname

Required. The name of the an unbound object frame control.

OLEData

Required. The data contained in an unbound object frame or ActiveX control.


The OLEData property is available only by using Visual Basic. For ActiveX controls, the OLEData property of one ActiveX control can be set to the OLEData property of another ActiveX control only in Design view.

Remarks

You can use this property to display data in an unbound object frame based on the data contained in another unbound object frame.

When you set the OLEData property of an ActiveX control to the OLEData property of another ActiveX control, the first ActiveX control becomes another instance of the second ActiveX control. For example, the result of the following property assignment is to change the TreeView control into a Calendar control:

Me!MyTreeViewControl.OLEData = Me!MyCalendarControl.OLEData
See Also

PictureData property.