+ Reply to Thread
Results 1 to 5 of 5

Resizing Cells to Match Inserted Text Box

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Charlottesville, VA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Resizing Cells to Match Inserted Text Box

    Is it possible to get the row that includes an inserted Text Box to autosize to match the height of that Text Box? The text box will vary in height due to word wrapping, but remain a fixed width. Any help would be appreciated.

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

    Re: Resizing Cells to Match Inserted Text Box

    hope this works for you

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    Charlottesville, VA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Resizing Cells to Match Inserted Text Box

    Hi Scott,

    Thanks for your help. This works great when inserted into a macro. Any way to get this code to fire automatically when any change is made to the text box contents? I might be able to get a few of my colleagues to remember/understand how to use a macro, but it would work much smoother if they didn't have to do more than enter their text and click out of the box.

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

    Re: Resizing Cells to Match Inserted Text Box

    I can't figure it out, for userform textboxes it is possible with the Textbox2_Change() as the macro name, but I tried it on the worksheet1 code and it doesn't work, sorry

  5. #5
    Registered User
    Join Date
    02-18-2013
    Location
    Charlottesville, VA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Resizing Cells to Match Inserted Text Box

    While I would like to put this code into VBA, I have managed to use it in a macro attached to a command button, and it works exactly as advertised. Thanks for your help.

+ 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