okay, i'm making a kind of role playing game just for fun, on powerpoint, i'm not very good at visual basic, so i thought it would also help me to learn.

anyway, i'm trying to make a counter for money and this is what i've got so far:

Dim playermoney As Integer

Private Sub CommandButton1_Click()
lblMoney = playermoney
Label2 = playermoney

playermoney = 0

playermoney = playermoney + 250

lblMoney = playermoney


End Sub

but this will only work on the first slide and not any other slides, i have tried everything i know about, but as i said before i'm not very good, so please help!!

counter will running for ??? times
Dim playermoney As Integer
Dim i as integer
for i = 0 to ???
Playermoney = Playermoney + 250
next i

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.