presentation helper

Go Back   Presentation Helper > Presentation Helper Forum > PowerPoint Questions and Answers

Reply
 
17-07-08
Junior Member
 
Join Date: 2008
Posts: 1
Run a macro during a presentation

Hi,

I would like to run a simple macro during a presentation. It works when running it in "slide view" mode. It's the following simple macro:

Quote:
Sub Test()

With ActiveWindow.Selection.SlideRange.Shapes("Puzzle3" )
.ScaleWidth 1.33, msoFalse, msoScaleFromTopLeft
.ScaleHeight 1.39, msoFalse, msoScaleFromTopLeft
.IncrementRotation -30.65
End With

End Sub
Is there a reason why this doesn't work when I try to execute it when I'm in "slide show" mode?

Cheers,

Fred
 
08-08-08
Presentation Expert
 
Join Date: 2006
Posts: 238

You cannot have a selection in show mode so your code will not work in this mode

Try this code

Sub Test(oshp As Shape)
With oshp
.ScaleWidth 1.33, msoFalse, msoScaleFromTopLeft
.ScaleHeight 1.39, msoFalse, msoScaleFromTopLeft
.IncrementRotation -30.65
End With
End Sub

Give the puzzle shape an action of run macro "test" and click on the puzzle shape to run
__________________
John Wilson
Microsoft PowerPoint MVP
PowerPoint Alchemy - Amazing free tutorials!
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies
Macros won't run in Action Settings On Mouse Click Mode jess7878 PowerPoint Questions and Answers 4
Business PowerPoint Presentation Tips alexbear88 Presentations 5
20 minute presentation for Corp. Education / Training position rilgrl Job Presentations 1
hi, i need some help to embed macro in ppt presentation m0fo PowerPoint Questions and Answers 0