UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Using Vba To Create A Timer On A Slide, Office 2013    
 
   
Psycoperl
post Sep 30 2019, 06:29 AM
Post#1



Posts: 427
Joined: 11-March 15
From: Somewhere lost in the NY Subways


I am working on a presentation in PowerPoint and at certain points of the presentation there are planned breaks for either team collabs or rest/comfort. Instead of having to build many slides which document the time remaining, I was hoping that I could use VBA to control the content displayed on the slide. Is this possible and how can I do this?
This is going to be my first VBA attempt in PowerPoint, normally I stay to MSAccess.
Go to the top of the page
 
kfield7
post Sep 30 2019, 07:48 AM
Post#2



Posts: 1,022
Joined: 12-November 03
From: Iowa Lot


See if this helps. It's a timer that pauses a number of seconds.
You could also use the timer just to count time.

CODE
Function kPause(kSeconds As Single) As Single
Dim kStart As Single
kStart = Timer
Do While Timer < kStart + kSeconds
    DoEvents
Loop
kPause = Timer - kStart
End Function

This post has been edited by kfield7: Sep 30 2019, 07:49 AM
Go to the top of the page
 
arnelgp
post Sep 30 2019, 08:37 AM
Post#3



Posts: 1,510
Joined: 2-April 09
From: somewhere out there...


you can press S to pause the presentation.
spacebar to continue.

keyboard shortcut while presentation is running:

End slide show: ESC
toggle screen black: B
toggle screen white: W
pause show: S
resume show: spacebar
show/hide pointer: A

This post has been edited by arnelgp: Sep 30 2019, 08:43 AM

--------------------
Never stop learning, because life never stops teaching.
Go to the top of the page
 
ADezii
post Sep 30 2019, 12:45 PM
Post#4



Posts: 2,700
Joined: 4-February 07
From: USA, Florida, Delray Beach


Here is a small Demo that I created for will that will display a Time Remaining Value in a Text Box on Slide# 3. Simply Click on the Countdown Timer Button on Slide# 3 or the Cancel Command Button. Moving to another Slide while the Countdown is active will disable the Countdown sequence. Download it and give it a try. I have also attached a Graphic of Slide# 3 for illustration purposes.

Attached File(s)
Attached File  Slide_Timer.zip ( 833.87K )Number of downloads: 4
Attached File  PP.JPG ( 16.23K )Number of downloads: 0
 
Go to the top of the page
 
arnelgp
post Sep 30 2019, 02:17 PM
Post#5



Posts: 1,510
Joined: 2-April 09
From: somewhere out there...


can you make it only Any slide, you don't
know which slide is on the show when breaks begins.
can the timer be changed, so as to wait for others
taking longer break,
This post has been edited by arnelgp: Sep 30 2019, 02:19 PM

--------------------
Never stop learning, because life never stops teaching.
Go to the top of the page
 
ADezii
post Oct 1 2019, 07:08 AM
Post#6



Posts: 2,700
Joined: 4-February 07
From: USA, Florida, Delray Beach


QUOTE
can you make it only Any slide, you don't
know which slide is on the show when breaks begins.

Create a Macro in All open presentations and call it within any Slide via Application.Run "<Macro Name>"
QUOTE
can the timer be changed, so as to wait for others
taking longer break,

Yes, if you need this flexibility, then you can prompt for a duration Value within the Macro.
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    6th December 2019 - 11:56 PM