Recognizing a whole number instead of a decimal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please help. What VBA code could automate the recognition of a whole number
instead of a decimal? My pending programming will generate values that are
either whole numbers or decimals. I only want to recognize whole numbers.

Thank you very much.
 
Assuming the number is in variable myNum

If myNum = Int(myNum) Then
...

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Thank you!!!

Bob Phillips said:
Assuming the number is in variable myNum

If myNum = Int(myNum) Then
...

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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