+ Reply to Thread
Results 1 to 7 of 7

Adjust Row Heights when entering data

  1. #1
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Adjust Row Heights when entering data

    Can someone assist me with adjusting the row heights when data is entered from the userform.
    Last edited by guitarsweety; 06-28-2014 at 01:38 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adjust Row Heights when entering data

    You have seven user forms and several worksheets. Where are the rows that you want to adjust?

    Nice username
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Adjust Row Heights when entering data

    Like your name too
    The User Form is UserForm Input and I'm struggling with the data that will be entered in "Behavior and Condition
    Description" and "Employee Feedback/Discussions and/or Resolutions" which will be at times rather lengthy.... and the sheet is Data Table

  4. #4
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Adjust Row Heights when entering data

    Anyone??????????

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adjust Row Heights when entering data

    The two columns you are referring to actually use multiple columns for one piece of data, which is not a best practice. The way to resolve that is to merge the cells as you have done with the headings on row 11, also not a best practice. The most immediate problem here is that if you have a merged range with wrapped text, Excel will not automatically fit the row height to fit the text contained. The best solution is to redesign your sheet to eliminate the need for merging.

    However, to answer the question, I have added sub MergeRange in module Merge to merge a range of cells. This sub is called from cmdbtnSave_Click for these two fields. This will automatically merge the ranges so the text fits, but the autosize is still a problem. So I have written an approximation, which won't work 100% of the time. Sometimes it will result in a height that is a little too big or a little too small.

    However...something else is wiping out the formatting that my code does. I suspect it is AutoFitMergedRng. You will have to trace the code and reconcile the issue.

    I also set MultiLine to TRUE for your textboxes so text will fill the box.

    I also found a compiler error in FillList_NoBlanks . No idea what you are trying to do with this line of code:

    Please Login or Register  to view this content.
    Do you mean this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Adjust Row Heights when entering data

    6StringJazzer .... You are awesome! I removed the AutoFitMergedRng and it works great. Thank you so much for your help.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Adjust Row Heights when entering data

    Phew! I'm glad it was that easy. I was worried that things were going to get very tangled up. You're welcome!

+ 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] quickly adjust row heights
    By jimboryan in forum Excel General
    Replies: 6
    Last Post: 05-23-2014, 08:14 PM
  2. [SOLVED] Adjust Value automatically when entering new value
    By InterstateRentals in forum Excel General
    Replies: 2
    Last Post: 12-10-2013, 06:47 PM
  3. [SOLVED] Auto Adjust Stacked Column Need to Adjust Legend
    By tbren in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-29-2013, 01:56 PM
  4. Replies: 1
    Last Post: 01-16-2009, 05:31 PM
  5. Replies: 1
    Last Post: 06-23-2006, 10: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