How to know the history of played slides in VBA?

A

An

Hellow!
I wrote a Macro myself for PowerPoint,and, in the
program I want to know the history of played slides.
How to get it?

Thanks in advance!
 
S

Steve Rindsberg

Hellow!
I wrote a Macro myself for PowerPoint,and, in the
program I want to know the history of played slides.
How to get it?

You'd have to write more macros to give you this information.
PowerPoint doesn't maintain any history of played slides itself.
 
A

An

Thanks!
If Powpoint doesn't maintain any history of played slides,
then how the last slide viewed slide could be replayed during
the presentation using right mouse button.
 
A

An

Thanks!
If Powpoint doesn't maintain any history of played slides,
then how the last viewed slide could be replayed using right
mouse button menu during the presentation.
 
S

Steve Rindsberg

Thanks!
If Powpoint doesn't maintain any history of played slides,
then how the last slide viewed slide could be replayed during
the presentation using right mouse button.

That plays the previous slide in the presentation, not the last-viewed slide.
They're usually, but not always the same thing.

You can add an action button to play the last-viewed slide, but that's still
not a history. Or rather it's a one-slide history.
 
K

Kathy Jacobs

Steve,
Huh? Yes, there is a last slide played option on the right click menu.
However, it is just that - the last slide viewed, click it twice and you are
back where you started. It doesn't keep track of more than one slide back.

--
Kathy Jacobs, Microsoft MVP OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information at www.onppt.com

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 
A

An

Right! you can goto the slide before last one by right click menu.
So I think,the history was kept by the PowerPoint.
 
S

Steve Rindsberg

Kathy Jacobs said:
Steve,
Huh? Yes, there is a last slide played option on the right click menu.

Ah nutz. I have PPT set not to show the rightclick menu, so a rightclick just
backs up one. But in any case:
However, it is just that - the last slide viewed, click it twice and you are
back where you started. It doesn't keep track of more than one slide back.

Right. Just like the action setting.
 
J

John Wilson

An experiment!
Create a five slide pres.
On slide 1 a link button to 3 and on 3 a link to 5

From 1 link to 3 and from there to 5

Now right click > last viewed - goes to 3 as you would expect
right click on 3 and last viewed - where do you end up?
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 
S

Steve Rindsberg

Right! you can goto the slide before last one by right click menu.
So I think,the history was kept by the PowerPoint.

If you think so, try it twice in a row.

Go to, say, slide 10.
Then to 8.
Then to 12.
Then back to 10.
Rightclick, go to previous slide. Back to 12.
Rightclick, go to previous slide. Now you're back at 10.

If you really believe that PPT maintains a history, you can now keep yourself
entertained for hours and hours. ;-)
 
S

Steve Rindsberg

Right! you can goto the slide before last one by right click menu.
So I think,the history was kept by the PowerPoint.

An, you're right, it does. My mistake ... I assumed that it works the same as
a previously viewed action setting. It doesn't. It does walk back along a
history chain.

I'm not sure you can access the whole history, but it looks like the
LastSlideViewed property of the SlideShowWindow.View might give you a link back
to the previous slide.
 
S

Steve Rindsberg

John Wilson said:
I know (well thought I knew) there was no "log"

<face color=rgb(255,0,0)>
Me.
</face>

Have a look in the mirror.

<face color=rgb(255,0,0)>
You too?
</face>

I'm scrambling to my feet so I can stand corrected.

They went and changed it when I wasn't looking, I swear it.
It DOES go back historically.

Now if you'll excuse me, I owe An an apology.
 
A

An

Thanks! Steve,
I have tried it.using LastSlideViewed property could only
goto sildes between current slide and the last viewed one.
 
S

Steve Rindsberg

Thanks! Steve,
I have tried it.using LastSlideViewed property could only
goto sildes between current slide and the last viewed one.
---------------------------------------

Same here. LastSlideViewed seems to work the same as the Last Slide Viewed
Action Setting, but not the RightClick version. Very odd.
 

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