How to control OLE embedded Objects

mlistman

New Member
Joined
Jun 25, 2002
Messages
2
I need to display some highly formatted text on an excel document. It is also too long to fit in a cell.
I am using sheet.OLEObjects.Add to embed a Word document on a sheet. Excel seems to treat it as a Shape, and I can control only basics such as posistion and size of the object.
Manually, I can double click on the embedded object to edit it (insert text, etc). At this point, I am talking directly to Word.
How can I do this in VBA??? I need a way of getting a handle on the embedded object as as Word.Application object so that I can use VBA to manipulate it.
Responses are appreciated.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top