+ Reply to Thread
Results 1 to 8 of 8

vba code for autofit columns in a worksheet

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    vba code for autofit columns in a worksheet

    Hi

    Looking for a vba code to autofit columns in a worksheet

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: vba code for autofit columns in a worksheet

    http://www.excelforum.com/excel-prog...umn-width.html

    gives the answer.

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: vba code for autofit columns in a worksheet

    Hello JEAN1972,

    If you are running it from a Module then the below could work for you;

    Please Login or Register  to view this content.
    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: vba code for autofit columns in a worksheet

    Hi Winon.
    columns.autofit
    will do as well

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: vba code for autofit columns in a worksheet

    Try this
    Please Login or Register  to view this content.
    I apologized for not seeing other posts .. Poor internet connection
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: vba code for autofit columns in a worksheet

    Winon could sympathise with you on the black out.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: vba code for autofit columns in a worksheet

    Agreed AB33, Columns.Autofit will suffice. How do you know about our blackouts

    Kind Regards.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: vba code for autofit columns in a worksheet

    Well, you mentioned in one of your threads- there is constant black out in some part of SA. It might be the same in Egypt.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vba code to autofit column when text is entered & time stamp entry for alternating columns
    By m1980rae in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2014, 05:55 AM
  2. VBA code for Autofit Columns in Excel
    By cassiefaye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2013, 06:40 PM
  3. [SOLVED] AutoFit Columns in specific worksheet
    By Dundas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2012, 10:26 AM
  4. Autofit all columns
    By cultavix in forum Excel General
    Replies: 2
    Last Post: 11-25-2008, 07:26 AM
  5. [SOLVED] Autofit code Issue
    By Joe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2005, 12:15 PM
  6. [SOLVED] autofit row code
    By Randy Starkey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2005, 08:06 AM
  7. [SOLVED] Autofit some columns
    By Me in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2005, 05:06 PM

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