excel - Loop won't stop, leads to overflow -


i new vba, seems simple, when run code continues create random numbers until gives me overflow message. can tell can read total, don't know why won't stop.

dim integer dim total integer = 1 total = range("c1")  while total < 180     cells(i, 1).value = int((10 - 3 + 1) * rnd + 3)     = + 1 loop 

thanks help.

i assuming c1 has type of sum or growing while vba populating numbers if case need re-evaluate total @ end of each loop. working me...

dim integer dim total integer = 1 total = range("c1")  while total < 180     cells(i, 1).value = int((10 - 3 + 1) * rnd + 3)     = + 1     application.calculate 'only needed if manual calculation on     total = range("c1") loop 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -