Rounding Values

  • Thread starter Thread starter Marcus
  • Start date Start date
M

Marcus

Does any one know how to round cell values down using vb
code.

I am trying to round down values such has 25.95456465 to
25 using a loop command. But cannot find any example in
any of my books.

Plese help
 
for each cell in selection
if isnumeric(cell) then
cell.value = int(cell.value)
end if
Next
 
Thanks Tom
-----Original Message-----
for each cell in selection
if isnumeric(cell) then
cell.value = int(cell.value)
end if
Next

--
Regards,
Tom Ogilvy





.
 

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