Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-21-2015, 09:53 AM
benicholls benicholls is offline VBA in Powerpoint Windows 7 32bit VBA in Powerpoint Office 2013
Novice
VBA in Powerpoint
 
Join Date: Nov 2015
Posts: 2
benicholls is on a distinguished road
Default VBA in Powerpoint

Hello there, i was wondering if anyone knew how to create a macro with sequential commands in it. i would like to click a box on a form, then go to the previous/next/ a specific slide.


I currently have the following, which work on their own, but not sequentially.

Sub PatientAdd()
MsgBox "Patient Added Successfully"
ActivePresentation.SlideShowWindow.Previous
End Sub
Reply With Quote
  #2  
Old 11-21-2015, 02:05 PM
JohnWilson JohnWilson is offline VBA in Powerpoint Windows 7 64bit VBA in Powerpoint Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Previous is not a method that applies to SlideShowWindow (there is usually only one SSW)

This might be what you mean:

Code:
Sub PatientAdd()
MsgBox "Patient Added Successfully"
ActivePresentation.SlideShowWindow.View.Previous
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 11-23-2015, 10:32 AM
benicholls benicholls is offline VBA in Powerpoint Windows 7 32bit VBA in Powerpoint Office 2013
Novice
VBA in Powerpoint
 
Join Date: Nov 2015
Posts: 2
benicholls is on a distinguished road
Default Reply

Thank you very much, it works like a dream. I also realised that I wanted to go to a specific slide, after executing a message box.

so far I have found
Code:
ActivePresentation.View.GotoSlide GetSlideIndex("PatientHome")
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerPoint 2007 --> PowerPoint 2003 Webpage? josephsh PowerPoint 0 06-09-2011 11:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft