Results 1 to 5 of 5

Column Width Decimal Places Rounding

Threaded View

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    South Africa
    MS-Off Ver
    Excel 2003
    Posts
    74

    Column Width Decimal Places Rounding

    Hi

    Is there anyway to get excel to not round off when adjusting the column width? For example, I set the column width specifically as such:

        Columns("O:O").Select
                With Selection
                .HorizontalAlignment = xlLeft
                End With
        Selection.ColumnWidth = 8.43
    Yet when I check the width afterwards, it is at 8.5

    It does this with all the columns where it rounds it off to a single decimal as opposed to two places

    Columns need to be formatted to an exact size since they are exported to a formatted text (space deliminated) file format which is very dependant on the column width

    Any ideas on how to keep two, and not one decimal place when setting the column width?

    Thank You
    Last edited by georgeanaprop; 07-19-2010 at 09:51 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1