PowerPoint Automation

R

russell.sage

I have put together a PowerPoint presentation and on each
slide I place button which will run a macro. The idea
being that if the user finds a fault with the presentation
then the macro emails me automatically(got that bit to
work) but it would help if I could tell which slide they
were viewing when they clicked the button. I just cannot
find away of getting the id of the current slide.

Sub mailto()

Dim mySlideIndex As Long
Dim faultySlide As Slide
Dim myApp As Outlook.Application
Dim myMailItem As Outlook.MailItem
Set myApp = CreateObject("Outlook.Application")
Set myMailItem = myApp.CreateItem(olMailItem)
Set faultySlide = ActivePresentation.Slides(SlideID)
mySlideIndex = faultySlide.SlideIndex
MsgBox (mySlideIndex)
With myMailItem
.Subject = "Problem with CaDETMUX/CRAY 2100 manual" +
mySlideIndex
.Recipients.Add "(e-mail address removed)"
.Importance = olImportanceHigh
.Send
End With
End Sub

Any and all assistance greatly received.

Thank you

Russell Sage
 

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