Closed Thread
Results 1 to 2 of 2

Get Autofit in Excel to format just part of a column?

  1. #1
    Dlegrand
    Guest

    Get Autofit in Excel to format just part of a column?

    Is it possible, using VBscript, to get Autofit to format only part of a
    column when building an Excel spreadsheet?
    --
    David Legrand

  2. #2
    NickHK
    Guest

    Re: Get Autofit in Excel to format just part of a column?

    David,
    No, the column can only have a single width.
    But you can select which cell is used as the base for .AutoFit. e.g.

    Range("A1").Value="This is long, long, long, long string"
    Range("A2").Value="Short string"
    Range("A2").Columns.AutoFit
    gives a different column width to
    Range("A1").Columns.AutoFit

    NickHK

    "Dlegrand" <Dlegrand@discussions.microsoft.com> wrote in message
    news:979747EC-BB3E-40C2-9FAE-017494852FCA@microsoft.com...
    > Is it possible, using VBscript, to get Autofit to format only part of a
    > column when building an Excel spreadsheet?
    > --
    > David Legrand




Closed Thread

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