Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 963 Bytes

Excel.OLEObject.Object.md

File metadata and controls

42 lines (28 loc) · 963 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
OLEObject.Object property (Excel)
vbaxl10.chm417076
vbaxl10.chm417076
Excel.OLEObject.Object
f49881b7-a793-8431-e50d-d56282004699
05/02/2019
medium

OLEObject.Object property (Excel)

Returns the OLE Automation object associated with this OLE object. Read-only Object.

Syntax

expression.Object

expression A variable that represents an OLEObject object.

Example

This example inserts text at the beginning of an embedded Word document object on Sheet1. Note that the three statements in the With control structure are WordBasic statements.

Set wordObj = Worksheets("Sheet1").OLEObjects(1) 
wordObj.Activate 
With wordObj.Object.Application.WordBasic 
 .StartOfDocument 
 .Insert "This is the beginning" 
 .InsertPara 
End With

[!includeSupport and feedback]