+ Reply to Thread
Results 1 to 2 of 2

AutoFit Headers once UserForm is executed

  1. #1
    Registered User
    Join Date
    05-08-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    80

    AutoFit Headers once UserForm is executed

    Hello, I was wondering if anyone knew how to autofit all of the columns once the 'OK' button is clicked on my userform?
    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: AutoFit Headers once UserForm is executed

    Columns("W:AA").EntireColumn.AutoFit where w and aa are the columns that need to be autofit, you might need to designate the sheet that needs to be autofit, ie activesheet. or Sheets("Sheet1").

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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