Computing.Net > Forums > Programming > VBA Code?

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VBA Code?

Reply to Message Icon

Original Message
Name: zxkyenterprises
Date: November 24, 2005 at 15:55:26 Pacific
Subject: VBA Code?
OS: Windows XP Home w/sp2
CPU/Ram: Celeron D 2.80ghz/512mb
Comment:

Hello... i have currently undertaken a project for my school (i'm a student) i have just been learning vba online.. but i am creating a PowerPoint interlaced with VBA (macros) i need to "add" numbers as in "Please enter number" then like 1 and the total is what was there plus one as in (display 5) (user 1) = newdisplay 6... myn wont work... dont know what to do.. this is what i have done...
-----
Public userName, userPoints, userTotal

Sub askSkoolpoints()
userPoints = InputBox(prompt:="Total", _
Title:="Points")
ActivePresentation.Slides(2).Shapes(3).TextFrame.TextRange.Text = userPoints + (ActivePresentation.Slides(2).Shapes(3).TextFrame.TextRange.Text)

End Sub


thank you very much

I would take over the world, but they wont give me the source code... Anon


Report Offensive Message For Removal








Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software