+ Reply to Thread
Results 1 to 3 of 3

Column Auto Sizing

  1. #1
    oranskeer
    Guest

    Column Auto Sizing

    How do I make a column automatically resize to grow as large as the data
    input in a cell automatically (not having to use the autofit column format
    option)?

  2. #2
    Jim Rech
    Guest

    Re: Column Auto Sizing

    Since Excel 97 column widths expand automatically for numerical entries
    unless they have been manually set to some width. Format, Column, AutoFit
    Selection sets the autofit property back on for columns that have been
    manually adjusted. Column widths do not expand for text entries.

    --
    Jim Rech
    Excel MVP
    "oranskeer" <oranskeer@discussions.microsoft.com> wrote in message
    news:D8DC51EB-AAEC-446C-BC02-6FECB79F0FCA@microsoft.com...
    | How do I make a column automatically resize to grow as large as the data
    | input in a cell automatically (not having to use the autofit column format
    | option)?



  3. #3
    Dave Peterson
    Guest

    Re: Column Auto Sizing

    You could use a worksheet_change event if the cell was changing because of your
    typing:

    Rightclick on the worksheet tab that should have this behavior. Select view
    code and paste this into the code window.

    Option Explicit
    Private Sub Worksheet_Change(ByVal Target As Range)
    Target.EntireColumn.AutoFit
    End Sub

    If you're new to macros, you may want to read David McRitchie's intro at:
    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    Did you know that you could autofit columns (and rows) by doubleclicking on that
    vertical bar between the column headings.

    You can even select all the cells and get all the columns at once with just one
    double click.

    oranskeer wrote:
    >
    > How do I make a column automatically resize to grow as large as the data
    > input in a cell automatically (not having to use the autofit column format
    > option)?


    --

    Dave Peterson

+ Reply to 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