Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Autofit Column w/ extra spaces

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Posts
    384
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have data in columns that I sum at the bottom of the sheet via a macro. The macro also performs an autofit upon the column. This leaves my column totals right up against each other. The data values fluctuate in size so I don't want to use a fixed column size. Is there a way to perform the autofit and add a few spaces before the sum so that there is a report that is better on the eyes. Thanks, Marc

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,940
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    Why don't you use the Autofit method after you've done the sum bit e.g.

    Range("A1:A10").Formula = "=INT(rand()*1000000000)"
    Range("A11").Formula = "=SUM(A1:A10)"
    Cells.Columns.AutoFit

    HTH,
    D

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Posts
    384
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I already have the autofit method in place, what I need is to add two character spaces to each column so to give more room between the dollar totals. Thanks, Marc

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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