cancel
Showing results for 
Search instead for 
Did you mean: 

Move contents from an oleobject to an olecontrol and back again

Former Member
0 Kudos

Can anyone describe how to do this?  Alternatively, if I could figure out how to address the server in an olecontrol via script that would work.  I'm trying to write script to MS Word to automate some document tasks, yet still allow the user to see the document contents on my window in the olecontrol.

Thanks - Jeff

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jeff,

if you have a word document in a ole control you can access the ole server using the .object notation. You have to activate the document fist.

e.g.

IF NOT ole_control.object.Saved THEN ole_control.object.Save()

Former Member
0 Kudos

Ah, thanks, that forced me to think straight.  Scoping issue, "object.selection.copy" fails, "object.application.selection.copy" works.


Thanks for the help.

Answers (0)