Truncating Decimals

R

RidgeView

I have a macro whereby I have cells each a with number that could be upto 2
decimals in length. Example: A B C
8 5.6 7.25
Creating a variable accessing these cells the results is as follows:
8 5 7

WHAT DO I NEED TO DO TO MAINTAIN THOSE DECIMAL POSITIONS? i AM USING EXCEL
2007.

Thanks in Advance.....
 
J

Jacob Skaria

What is the variable type used ('Integer' or 'Long').
Declare the variable as 'Variant' or 'Double' and try

or just try
Msgbox Range("A1")

If this post helps click Yes
 

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

Top