+ Reply to Thread
Results 1 to 8 of 8

Detect if row height is fit to the contents of the cell or not

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

    Detect if row height is fit to the contents of the cell or not

    Hello experts
    Is there UDF function that detects the contents of the cell and see if it is fit to the row height or not?
    Thanks advanced for help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Detect if row height is fit to the contents of the cell or not

    What do you mean by " if it is fit to the row height or not"
    Can you example with correct and not correct display
    - Battle without fear gives no glory - Just try

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

    Re: Detect if row height is fit to the contents of the cell or not

    Quote Originally Posted by PCI View Post
    What do you mean by " if it is fit to the row height or not"
    Can you example with correct and not correct display
    Thanks a lot for reply
    Have a look at this sample file
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Detect if row height is fit to the contents of the cell or not

    Not easy to evaluate what is the row size versus the contain.
    What do you want to do after to diagnostic a bad size, is it to adjust the size of the row?

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Detect if row height is fit to the contents of the cell or not

    Does this help?

    Please Login or Register  to view this content.

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

    Re: Detect if row height is fit to the contents of the cell or not

    Thanks a lot for replies
    In fact I do sort task for range (with different row heights ..)
    After sort I got unfit row heights so I am seeking for a way to keep the row height of the same cell before sort
    For example : if row 9 has 21 height and after sort row 9 became row 3 (now row 3 is not the same height) >> I need to keep the row height which is here 21 .. so row number 3 would be the same row height

    Please have a look at this sample to illustrate the problem (sort the range A1:B4 by column B)
    I need to keep the row height of cell after sort
    Attached Files Attached Files
    Last edited by YasserKhalil; 05-25-2016 at 03:15 PM.

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Detect if row height is fit to the contents of the cell or not

    Probably not the best solution but you could use an inserted helper column to record your row height prior to sorting.

    Please Login or Register  to view this content.

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

    Re: Detect if row height is fit to the contents of the cell or not

    Thanks a lot Mr. John for the idea
    In fact I had the same idea but using loops with large amounts of data is a disaster ..
    and this is the problem for me in most issues .. so if there is a method using vba arrays, I think it would be very useful
    Thank you very much

+ 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. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  2. Autosize only height of comment box relative to height of cell comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 10:25 AM
  3. copy contents of a sheet to another with the exact column width and row height
    By prajesh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2011, 06:18 AM
  4. Replies: 4
    Last Post: 05-31-2006, 05:15 PM
  5. [SOLVED] need to dbl row height without changing height of cell next to it
    By Excel-Illiterate in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-15-2006, 08:15 PM
  6. Replies: 1
    Last Post: 09-29-2005, 02:05 PM
  7. [SOLVED] linked cell contents not autofitting row height
    By joeeng in forum Excel General
    Replies: 5
    Last Post: 08-02-2005, 03:05 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