View Single Post
 
Old 08-16-2011, 06:20 AM
DugganSC DugganSC is offline Windows XP Office 2007
Novice
 
Join Date: Aug 2011
Posts: 8
DugganSC is on a distinguished road
Smile Editing an embedded OLE object

I've been assigned to design some Word macros to clean up exported requirements documents from Telelogic DOORS. Among other tasks, the current cover page is being exported as an embedded Word document. I need to do two things with it. First, I need to center the embedded object on the page (currently, it's aligned with the left side in the center of the document). Second, I need to go into the embedded object and find a piece of text. I can do the latter once I've opened the OLE object, but I haven't figured out how to do that programmatically yet. My usual method for figuring out how to do things in Word macros is to record a macro and then look at the code, but double-clicking into an object seems to be disabled when recording the macro.

I found an example of opening embedded objects at http://thedailyreviewer.com/windowsa...g-vba-10672616 but that only seems to find the images in my document.

Any help?
Reply With Quote