Rounding decimals in a summ

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

Guest

HI

working on excel 2003

this what I had set up in a macro

(cell A1 as a value of 12,32)

my macro:

Dim timpt as long
timpt = timpt + cells(1,1).value

the result is 12,00

What I would like and I cannot get it is to keep the decimals and not to
have as a result a rounded number

Any help will be appreciated
Thanks
Francesco
 
Dim timpt as Double
timpt = timpt + cells(1,1).value

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Thaks a lot Bob Finally I got the decimals displayed and not rounded
have a nice day thanks again
Francesco
 

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

Similar Threads


Back
Top