Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2013, 08:46 AM
ky1488 ky1488 is offline Programatically hide slides during presentation Windows 7 32bit Programatically hide slides during presentation Office 2007
Novice
Programatically hide slides during presentation
 
Join Date: Sep 2013
Posts: 6
ky1488 is on a distinguished road
Default Programatically hide slides during presentation

I have a self-running presentation. Some of the slides depend on the time. I have created an Excel file with the time table. The presentation initially reads the valid times for each slide. A slide can be valid till "09.09.2013 17:00". Thereafter it should be hidden. I have done it with VBA function "OnSlideShowPageChange": If the time-table-time is less than now() then move to slide + 1. (.GotoSlide i + 1).


There is however a problem: When the slide should be skipped, it actually shows up, but immediately changes to next slide. Is there a function or property acting in advance - not when the event already has been triggered?

Håkan
Reply With Quote
  #2  
Old 09-10-2013, 09:10 AM
JohnWilson JohnWilson is offline Programatically hide slides during presentation Windows 7 64bit Programatically hide slides during presentation 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

Couldn't you run the time check on the previous slide and then Hide the next slide if needed

.Slides(i+1).SlideShowTransition.Hidden=msoTrue (or msoFalse)
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 09-10-2013, 11:37 AM
ky1488 ky1488 is offline Programatically hide slides during presentation Windows 7 32bit Programatically hide slides during presentation Office 2007
Novice
Programatically hide slides during presentation
 
Join Date: Sep 2013
Posts: 6
ky1488 is on a distinguished road
Default

Thank you for your easy solution. I'll give it a try.
Reply With Quote
  #4  
Old 09-11-2013, 08:03 AM
ky1488 ky1488 is offline Programatically hide slides during presentation Windows 7 32bit Programatically hide slides during presentation Office 2007
Novice
Programatically hide slides during presentation
 
Join Date: Sep 2013
Posts: 6
ky1488 is on a distinguished road
Default

It does not seem to work as required. However the biggest problem here is that executions won't suspend at breakpoints. Debugging is very troublesome!

Your solution sets hidden permanently. As I already have hidden slides, I don't want to mix with them or by accident unhide a slide I have originally set to hidden. A better solution for my application would be to set the next active slide to i+2. I suppose I'd better use App_SlideShowNextSlide instead but then, how I set the next slide number to ActiveSlide + 2?

Håkan
Reply With Quote
  #5  
Old 09-11-2013, 08:21 AM
JohnWilson JohnWilson is offline Programatically hide slides during presentation Windows 7 64bit Programatically hide slides during presentation 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

I was suggesting using msoFalse and or msoTrue to hide/unhide as required by checking the time whatever againt the slide number.

You might want to look at a free addin that may do what you need
http://www.ppted.com/addins/presenta...planpoint.html
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programatically hide slides during presentation VBA for CheckBox to Hide Slides mutchy25 PowerPoint 1 09-21-2012 01:40 AM
Multiple Monitors/One Presentation/Different Slides future PowerPoint 0 12-12-2011 02:20 PM
How do I swap slides during a presentation? Harper PowerPoint 0 08-17-2011 09:13 AM
Programatically hide slides during presentation viewing slides while doing my presentation davepower PowerPoint 1 04-30-2009 02:18 PM
How many slides in a 30 min presentation barbara3010 PowerPoint 2 02-12-2009 10:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:58 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