Hi,
I am developing a game using MS Powerpoint 2007. In this game user is
supposed to click hyperlink on the powerpoint. I have to add 1 to my
counter when user is clicking such hyperlink so that I will know how
many times the user actually clicked such hyperlink. Please let me
know how I can add 1 to my counter and get the final result of the
counter.
Thanks
Sri
Bill Dilworth - 18 Jul 2007 09:18 GMT
The easiest way may be to use an action setting to fire a macro that
increments your counter then hyperlinks to a location stored in the object's
tags.
How are your VBA coding skills?

Signature
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
.
> Hi,
>
[quoted text clipped - 8 lines]
>
> Sri
John Wilson - 18 Jul 2007 16:36 GMT
As Bill says it can only be done with vba (AFAIK!). This code should work to
eg link to slide 2 (change as required)
Dim counter As Integer
Sub countme(oshp As Shape)
ActivePresentation.SlideShowWindow.View.GotoSlide (2)
counter = counter + 1
If oshp.HasTextFrame Then
oshp.TextFrame.TextRange = counter
End If
End Sub

Signature
Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk/ppttipshome.html
email john AT technologytrish.co.uk
> Hi,
>
[quoted text clipped - 8 lines]
>
> Sri