For instance if I clicked a button, it will generate a number starting from 60, How do I make it in a way that when I clicked the button again, it will increment by 1 using VBA?
Thanks in advance!
Dinosaur1993
For instance if I clicked a button, it will generate a number starting from 60, How do I make it in a way that when I clicked the button again, it will increment by 1 using VBA?
Thanks in advance!
Dinosaur1993
try
![]()
Sub test() If Range("a1").Value < 60 Then Range("a1").Value = 60 Else Range("a1").Value = Range("a1").Value + 1 End If End Sub
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
In this one we had a restriction, how do we work it out if we dont have a restricted value? cheers
i have no idea what you mean
sorry for being vague.
Its like say for instance, initially, we know that we are counting to 60 yeah?
What if, we just keep on incrementing to infinity without knowing the end value?
thats not even the same question in your first post you say you want to start at 60 not finish at 60
oh wait, sorry my bad!!! I was thinking of another question
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks