Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro not executed Excel -- PowerPoint

Hi I need help with this: Trying to figure out why my powerpoint macro
doesn´t execute, I found some clues...:

Firsto of all I´m programming with VBA in Excel 2000, and this is the
macro I use to open the ppt presentation and to run a specific
SlideShow:




Code:
--------------------

Sub ShowPPT(pp As String)
Dim pptapp, ppt As Object
Application.ScreenUpdating = False
Set pptapp = CreateObject("PowerPoint.Application")
pptapp.Visible = True
Set ppt = pptapp.Presentations.Open(ActiveWorkbook.Path & "\Distingos.ppt")
With ppt.SlideShowSettings
.ShowType = 1
.LoopUntilStopped = msoFalse
.ShowWithNarration = msoFalse
.ShowWithAnimation = msoFalse
.RangeType = 3
.SlideShowName = pp
.AdvanceMode = 2
.PointerColor.SchemeColor = 2
.Run
End With
Set ppt = Nothing
Set pptapp = Nothing
Application.ScreenUpdating = True
End Sub

--------------------


This works great, the problem cames when the ppt file opens, I only
want it to show certain slides (I created a lot of Custom SlideShows),
and when the user clicks the mouse close the presentation and the
application... I use this code:



Code:
--------------------

Sub EndShow()
SlideShowWindows(1).View.Exit
Application.Quit
End Sub

--------------------


But for some reason, this macro (attached to a shape) doesn´t run!!!, I
tried to open manually the ppt file and then run the show, clic the
shape and it works... why it doesn´t work when I open it from Excel???

Could anybody help me???


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent Cell modification when Excel is executed Paul Worsnop Excel Discussion (Misc queries) 2 November 11th 08 04:19 PM
Macro get executed twice Anand Nichkaode Excel Discussion (Misc queries) 3 September 24th 08 01:25 PM
Excel macro to close powerpoint sarahl Excel Discussion (Misc queries) 1 December 2nd 05 12:06 AM
Using PowerPoint to Call Excel/Macro? Losse Excel Discussion (Misc queries) 0 July 20th 05 03:00 PM
passing variables from an excel macro to a powerpoint macro jake Excel Programming 1 December 11th 03 02:36 AM


All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"