AutoFit

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

Guest

Hi

When I use the AutoFit function in my VB Application, to format a Excelsheet the numbers in the column formats. From being 230,1 to 230,144444444. Why?

Thanks in advance

/Sara
 
My guess is your number is really 230,144444444. You could format the number to
show fewer decimals or even use a worksheet function to round it. =round(a1,3)
for example.

But if your cell is formatted as General and you have that number in it, then if
you shrink the columnwidth, excel will adjust the display (but not the
underlying value). Widen it using autofit (manually or in code) will show all
the digits.
 

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

Currency autofit 5
Selecting AutoFit 4
Autofit Row Height 4
Autofit row height 7
Excel 2003: Customizing Toolbars 2
Excel 2007 - Rows - Height - AutoSize question 1
Autofit Columns 2
Autofit to contents 4

Back
Top