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 / December 2004

Tip: Looking for answers? Try searching our database.

A link between Word and Powerpoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark L - 13 Dec 2004 13:43 GMT
I am trying to link a Word document(Office 97) with a powerpoint presentation
but am having trouble. In my Word document, I bring up a form. Clicking a
button on
the form loads a single-slide Powerpoint presentation in which a Custom
Animation runs.
So far so good. But…
On the slide is a shape which I want to be able to click to repeat the
Custom Animation.
In the powerpointpoint presentation I have a macro which works fine when the
Powerpoint presentation is run as a standalone, but nothing happens when I
click the object after it's run from the form in Word.
Sub PlayJourneyAgain()
  SlideShowWindows(1).View.GotoSlide 1
End Sub

I am trying to assign the action settings for the shape (16) from the form
in Word.
This is the bones of the Sub on the form:

Private Sub cmdRunPptPres_Click()
Dim PPApp As PowerPoint.Application
Dim PPPres As PowerPoint.Presentation

Set PPApp = CreateObject("Powerpoint.Application")
PPApp.Visible = True
Set PPPres = PPApp.Presentations.Open("c:\Maceton\Journey.ppt")

PPPres.SlideShowSettings.Run                      ‘works to here

‘this bit was supposed to set the action setting
With PPPres.Slides(1).Shapes(16).ActionSettings(ppMouseClick)
   .Action = ppActionRunMacro
   .Run = "PlayJourneyAgain"
   .AnimateAction = True
End With

End Sub

However, clicking Shape 16 does not run the Macro. In fact, nothing happens.
I'm obviously missing something, either here or in the PP Presentation.

Signature

Mark L




--
Mark L

Word Heretic - 13 Dec 2004 23:03 GMT
G'day Mark L <macelangan@yahoo.com.au.nospam>,

If you want the ppt t run, don't embed it - hyperlink to it.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

Mark L reckoned:

>I am trying to link a Word document(Office 97) with a powerpoint presentation
>but am having trouble. In my Word document, I bring up a form. Clicking a
[quoted text clipped - 36 lines]
>However, clicking Shape 16 does not run the Macro. In fact, nothing happens.
>I'm obviously missing something, either here or in the PP Presentation.

Rate this thread:






 
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.