WRAP TEXT TILL FULL VISIVILITY

xenios

Board Regular
Joined
Sep 4, 2020
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
Hi, please need help in current.
I have in a lot of cases when the text in a sheet is not visible till the end, and I have to drag the cell manually for the text to be visible, as it comes like that from a software for multiple sheets . May be there's is a VBA code for that? The example it attached.
In some cases it can be 1 like, in some 3 an in some even have to merge with the next cell to fit it.
 

Attachments

  • bottom text.png
    bottom text.png
    3.1 KB · Views: 11

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How are you defining which rows to autofit and how do you want the macro triggered?

By the way you don't need to drag the cell manually, you can select the rows (as long as they are contiguous) and double click one of the lines between the row numbers in the selected rows and it will autofit the row height (in your image if that is row 6 showing then select row 6 and double click that line you can see below the 6 in the image).
 
Upvote 0
It shows me the whole text, but doesn't change the row height.
And I have to fix it for other people to read. + out of 300 sheets, 250 have this problem.

May be there is the way to do it without using vba, but I didn't find one.
 
Upvote 0
It shows me the whole text, but doesn't change the row height
I'm not sure how it can be showing you the whole text without it changing the row height :unsure: but the syntax for autofitting rows is just
VBA Code:
Rows("1:6").AutoFit
 
Upvote 0
I'm not sure how it can be showing you the whole text without it changing the row height :unsure: but the syntax for autofitting rows is just
VBA Code:
Rows("1:6").AutoFit
Unfortunately not working, made it till cell 1000, till specific cell, still not.
It's also not working if I just row autofit manually on the sheet, makes it even smaller. I has by default wrap text and merge. But still (picture attached. May be just impossible.
 

Attachments

  • row.png
    row.png
    55.5 KB · Views: 3
Upvote 0
The merge cells are probably your issue, there is code around that might work but I am afraid that I don't write it as I hate merged cells.
 
Upvote 0
Have a play with the code by Smallman that I posted in the thread below.
Edit: probably better for you to play with the code in the last post first.

 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,884
Messages
6,122,082
Members
449,064
Latest member
MattDRT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top