+ Reply to Thread
Results 1 to 3 of 3

Autofit a column width as a result of a search formula

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Autofit a column width as a result of a search formula

    Hi,
    I have a formula that searches another sheet for song lyrics " =IF(K$8="","",INDEX(Lyrics!A:AAA,ROWS($1:4),K$8)&"") ", what I would like to happen when I enter a new search is the column width to auto fit the widest cell.

    Any help would be greatly appreciated.

    File now updated.
    Attached Files Attached Files
    Last edited by A440; 09-13-2015 at 06:35 PM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Autofit a column width as a result of a search formula

    Hi,

    seems to me the attached workbook is empty. You can try to use a worksheet event (use in the Sheet module with cell K8).

    For example,
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Autofit a column width as a result of a search formula

    Thank you for your reply.
    I have updated the file.
    I can get your suggestion to work but only by re applying the formula in K8.
    I also have another worksheet change event on the same sheet, as a result the procedure names clash, can the name be changed?

+ 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] Autofit Column Width
    By plans in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-06-2015, 01:45 PM
  2. Quick Question on Column Width Autofit
    By dellphinus in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2010, 04:19 PM
  3. Autofit if characters in cell exceed column width
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2007, 03:45 PM
  4. [SOLVED] Autofit doesn't work when column not enough width
    By Alex St-Pierre in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2006, 02:40 PM
  5. autofit cells in column width
    By Boethius1 in forum Excel General
    Replies: 5
    Last Post: 04-11-2006, 09:55 PM
  6. Autofit Row height or Column Width does not work
    By Gunjani in forum Excel General
    Replies: 2
    Last Post: 10-11-2005, 05:05 PM
  7. [SOLVED] autofit Column width- Ajit
    By Ajit Munj in forum Excel General
    Replies: 3
    Last Post: 02-24-2005, 02: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