Looping through text boxes

  • Thread starter Thread starter skrimpy
  • Start date Start date
S

skrimpy

Also, I have never used the ".Value" anytime when referencing the valu
inside of a cell. Is this more correct than what I was doing? Thank
again for the help.
Da
 
You use variables when something will change. If you will have multiple
instances of the same hardcoded value and it may change from time to time,
but infrequently, then you might want to declare a constant and use that
constant in your code. Then if you do have to change it, it only needs to
be changed in one place. (also you can use a clever name that might make it
easier to read the code).

Using value is specific. when you don't use value, value is implied. There
have been a few instances in the past that not using value would cause a
problem, but largely it doesn't make any functional difference. It is
clearer and VBA doesn't have to make any decision on what you mean.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top