Capture Mouse click and execute VBA in PowerPoint 2007

sous2817

Well-known Member
Joined
Feb 22, 2008
Messages
2,276
Hello everyone,

I'm trying to unhide an image after a set animation takes place in a slide. I think I have some reliable code to count when a click happens:

Code:
Sub SlideShowNextClick(ByVal Wn As SlideShowWindow, ByVal nEffect As Effect)
MsgBox SlideShowWindows(1).View.GetClickIndex
End Sub

The problem is, the SlideShowNextClick event isn't firing at all. Is there some fancy way to fire off code in PowerPoint? I know I can attach code to a shape, but that's not what I'm looking for...any help with how to fire code when the slide is clicked would be great.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hello everyone,

I'm trying to unhide an image after a set animation takes place in a slide. I think I have some reliable code to count when a click happens:

Code:
Sub SlideShowNextClick(ByVal Wn As SlideShowWindow, ByVal nEffect As Effect)
MsgBox SlideShowWindows(1).View.GetClickIndex
End Sub

The problem is, the SlideShowNextClick event isn't firing at all. Is there some fancy way to fire off code in PowerPoint? I know I can attach code to a shape, but that's not what I'm looking for...any help with how to fire code when the slide is clicked would be great.

Hi sous,

I have the same issue, but I am working on Office 2007, VSTO 3.0 and Visual Studio 2010. When I try to run Microsoft Powerpoint 2007 in Debug Mode, and have got breakpoints in Application_SlideShowNextClick event, it isn't getting fired at all. Have you found a fix or still is it buggy? Is there any way to fire that event?

Cheers,
podaVenna!
 
Upvote 0
Sorry, I've long since abandoned this. I'm not even sure I remember the context of my problem, so I won't be too much help...
 
Upvote 0

Forum statistics

Threads
1,225,681
Messages
6,186,411
Members
453,352
Latest member
OrionF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top