How do I use Arithmetic operation in PowerPoint 2007?

M

mastersde8888

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
 
B

Bill Dilworth

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?


--
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
..
 
G

Guest

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
 

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