PC Review


Reply
Thread Tools Rate Thread

Powerpoint SlideShowBegin won't fire

 
 
timonardo@gmail.com
Guest
Posts: n/a
 
      26th Jul 2012
I have the following VBA code attached in a PowerPoint 2010 macro-enabled presentation:


Public CurrentSlideIndex As Integer

Sub OnSlideShowPageChange()
CurrentSlideIndex = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
If CurrentSlideIndex = 1 Then
MsgBox "First Page"
' some initialization
End If
End Sub


I want to do some initialization there when the first page is shown. The problem is that when I run the presentation for the first time, the routine is not fired. I need to stop presentation and run it the second time, then it work - and keeps working afterward also. Only the first run doesn't work.

I've tried adding something like following in a class module:

Public WithEvents App As Application
Private Sub App_SlideShowBegin(ByVal Wn As SlideShowWindow)
MsgBox "SlideShowBegin"
End Sub


But that doesn't seem to run either.

Pom
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerPoint versions puzzle: PowerPoint 2003 to PowerPoint 2007,PowerPoint 2007 to PowerPoint 2003? Dwightgenius Microsoft Powerpoint 1 1st Jul 2009 07:38 AM
PowerPoint SlideShowBegin Event Firing Multiple Times Per Slide? Darwin Microsoft Powerpoint 4 11th Dec 2008 08:38 PM
Is there a "before" slideShowBegin event? S.Creek Microsoft Powerpoint 7 14th Feb 2006 02:01 AM
FIRE! FIRE! HELP!!!!!!!!!!!! Waltc Windows XP Security 4 15th Jul 2004 09:58 PM
events do not fire from exe but fire from vb6 ide yetty soft via .NET 247 Microsoft VB .NET 3 29th Apr 2004 03:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.