I'm in the process of learning VBA so I am pretty brand new to it. I am creating a dice game to just get practice and tinker with the code. I'm trying to find a way to either add or subtract the amount the user bets from the amount of money he has. So if he guesses closer to the dice rolled, he would win and win the amount of money he has bet and it would get added to his balance. My problem is trying to figure out how to add or subtract the bet amount from the balance. I'm trying to use an If statement that says if Player wins add bet to balance and if he loses subtract bet from balance. What is the best way of doing this in VBA? Thanks for any help you offer.
Aucun commentaire:
Enregistrer un commentaire