If/Then Script not working

S

speechpath

Does anyone know why this script will work in PPT Office XP, but not in PPT for Office 2004 on Mac?

Do I need to modify it for it to work on a Mac?

Thanks

Here's the script:

Sub OnSlideShowPageChange()
If ActivePresentation.SlideShowWindow.View.CurrentShowPosition = 3 Then
ActivePresentation.SlideShowWindow.View.GotoSlide 5
End If
End Sub
 
S

Steve Rindsberg

Does anyone know why this script will work in PPT Office XP, but not in PPT for Office 2004 on Mac?

Do I need to modify it for it to work on a Mac?

Thanks

Here's the script:

Sub OnSlideShowPageChange()
If ActivePresentation.SlideShowWindow.View.CurrentShowPosition = 3 Then
ActivePresentation.SlideShowWindow.View.GotoSlide 5
End If
End Sub

That appears to rely on events.

Events are supported in VB6 (the version of VBA that's included in Windows PPT 2000
and up) but not in VB5 (what all Mac PPT versions have, except those that don't have
VBA at all).


================================================
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top