vba - Visual Basic: Increasing integer every 3 clicks -


so question pretty title says: how integer increase 1 every 3 clicks of button? example, let's integer 900. click button1 once, again, again, , on third click integer changes 901. how can accomplished?

thanks in advance.

use counter 3 times larger behind scene. start @ 2700 instead of 900, , increase value 1 each click.

when want display value increases every third click, divide counter three:

displayvalue = counter \ 3 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -