Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

urgenttttttttt/how to run embeded object in the word??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
noor - 01 Apr 2007 08:52 GMT
how  I can run embeded object in the word when I open the word document.
the en=mbeddedplease I need your help.
object is an execution file.
Helmut Weber - 01 Apr 2007 09:27 GMT
Hi,

>how  I can run embeded object in the word when I open the word document.
>the en=mbeddedplease I need your help. object is an execution file.

like this:

Sub Autoopen()
ActiveDocument.InlineShapes(1).OLEFormat.Activate
SendKeys "r", True
End Sub

Place Autoopen in the document.

Whether sendkeys is required may depend on your version of windows,
on the program you are going to start, and on the security settings.
Tested with notepad.exe and explorer.exe.

I couldn't find another method to overcome security settings.

Sure, you have to know, which inlineshape's oleformat
you want to activate. Could be a shape as well.

You could also use:
ActiveDocument.InlineShapes(1).OLEFormat.DoVerb (wdOLEVerbPrimary)

HTH

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

noor - 04 Apr 2007 09:32 GMT
it works
thank u v much.

> Hi,
>
[quoted text clipped - 23 lines]
>
> HTH
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.