Can row height adjust to fit all wrapped text automatically, or font size adjust to do the same?

%3CLINGO-SUB%20id%3D%22lingo-sub-2376842%22%20slang%3D%22en-US%22%3ECan%20row%20height%20adjust%20to%20fit%20all%20wrapped%20text%20automatically%2C%20or%20font%20size%20adjust%20to%20do%20the%20same%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376842%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20working%20in%20Office%20Professional%20Plus%202019.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20got%20a%20workbook%20that%20interacts%20with%20Power%20Automate%20in%20several%20ways%20and%20I'm%20having%20issues%20getting%20Excel%20to%20do%20what%20I%20want%20it%20to.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20the%20details%3A%3C%2FP%3E%3CP%3EEvery%20time%20a%20Form%20is%20submitted%2C%20Power%20Automate%20updates%20a%20row%20in%20a%20table%2C%20makes%20a%20copy%20of%20the%20workbook%20to%20a%20new%20location%2C%20and%20triggers%20a%20script%20in%20this%20new%20copy.%20The%20result%20of%20all%20of%20this%20is%20that%20the%20script%20turns%20one%20worksheet%20within%20the%20workbook%20into%20a%20nice%2C%20pretty%2C%20stand%20alone%2C%20one%20page%20PDF.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20trouble%20lies%20in%20that%20worksheet.%26nbsp%3B%20I%20have%20a%20cell%20with%20wrapped%20text%20turned%20on%20because%20Forms%20a%20field%20wherein%20a%20user%20can%20just%20type%20in%20a%20response%20of%20however%20long%20and%20treats%20it%20as%20just%20one%20string.%26nbsp%3B%20The%20problem%20is%20that%20when%20the%20user%20submits%20a%20response%20over%20a%20certain%20length%2C%20it%20wraps%20onto%20a%20third%20line.%26nbsp%3B%20When%20this%20happens%2C%20I%20can't%20read%20all%20three%20lines%20of%20text.%26nbsp%3B%20I'd%20like%20to%20have%20the%20font%20size%20update%20automatically%20such%20that%20all%20of%20the%20text%20is%20visible.%26nbsp%3B%20If%20that%20cannot%20be%20done%2C%20I'd%20like%20to%20have%20the%20cell%20automatically%20adjust%20the%20height%20so%20that%20the%20rows%20are%20visible.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20that%20I%20can%20use%20autofit%20manually%20and%20that%20I%20can%20probably%20include%20autofit%20into%20the%20script.%26nbsp%3B%20But%20that%20doesn't%20truly%20address%20my%20issue.%26nbsp%3B%20Most%20of%20the%20time%2C%20the%20sheet%20in%20question%20is%20updated%20by%20selecting%20from%20a%20dropdown%20box%20and%20all%20of%20the%20cells%20across%20the%20sheet%20update%20to%20pull%20from%20a%20different%20line%20in%20the%20aforementioned%20table.%26nbsp%3B%20If%20I%20include%20autofit%20in%20the%20script%2C%20that%20will%20address%20having%20this%20PDF%20come%20out%20without%20all%20of%20the%20lines%20visible.%26nbsp%3B%20What%20it%20doesn't%20do%20is%20fix%20that%20most%20of%20the%20time%2C%20I'm%20selecting%20from%20a%20drop%20down%20and%20changing%20the%20contents%2C%20and%20the%20row%20would%20then%20just%20stay%20the%20same%20size.%26nbsp%3B%20It's%20not%20a%20truly%20dynamic%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2376842%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2384004%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20row%20height%20adjust%20to%20fit%20all%20wrapped%20text%20automatically%2C%20or%20font%20size%20adjust%20to%20do%20the%20same%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2384004%22%20slang%3D%22en-US%22%3EIf%20you%20turn%20on%20Wrap%20text%20for%20that%20cell%2C%20doesn't%20that%20cause%20Excel%20to%20expand%20the%20row-height%20to%20accommodate%20for%20the%20number%20of%20rows%20of%20text%3F%20%3CBR%20%2F%3ENote%20that%20this%20does%20not%20work%20for%20merged%20cells%2C%20so%20you%20must%20redesign%20the%20sheet%20so%20this%20comment%20cell%20is%20a%20single%20cell.%3C%2FLINGO-BODY%3E
New Contributor

I'm working in Office Professional Plus 2019.  

I've got a workbook that interacts with Power Automate in several ways and I'm having issues getting Excel to do what I want it to.

 

Here's the details:

Every time a Form is submitted, Power Automate updates a row in a table, makes a copy of the workbook to a new location, and triggers a script in this new copy. The result of all of this is that the script turns one worksheet within the workbook into a nice, pretty, stand alone, one page PDF.

 

The trouble lies in that worksheet.  I have a cell with wrapped text turned on because Forms a field wherein a user can just type in a response of however long and treats it as just one string.  The problem is that when the user submits a response over a certain length, it wraps onto a third line.  When this happens, I can't read all three lines of text.  I'd like to have the font size update automatically such that all of the text is visible.  If that cannot be done, I'd like to have the cell automatically adjust the height so that the rows are visible.  

 

I know that I can use autofit manually and that I can probably include autofit into the script.  But that doesn't truly address my issue.  Most of the time, the sheet in question is updated by selecting from a dropdown box and all of the cells across the sheet update to pull from a different line in the aforementioned table.  If I include autofit in the script, that will address having this PDF come out without all of the lines visible.  What it doesn't do is fix that most of the time, I'm selecting from a drop down and changing the contents, and the row would then just stay the same size.  It's not a truly dynamic solution.

 

Any suggestions?

1 Reply
If you turn on Wrap text for that cell, doesn't that cause Excel to expand the row-height to accommodate for the number of rows of text?
Note that this does not work for merged cells, so you must redesign the sheet so this comment cell is a single cell.