Automatically wrap text in a merged cell of a protected sheet

AwesomeSteph

Board Regular
Joined
Aug 18, 2017
Messages
80
I have tried a lot of different code that does not work. What I am looking to do is this: I have an excel template that users should not be able to edit the top portion of a form but they need to be able to add comments to the bottom portion of the form, to do this I have protected the sheet. However now if the users comment is too long they can not view the entire comment so the person the comment is for can't read the entire content of the cell. I have changed the protection so they are able to change the height of the cell manually and this should help for now however a lot of the users are very grumpy and complain about this constantly. Is there a code that will automatically adjust the height of the cell when the comment is larger than the area of the merged cell? I cannot adjust the form to not have these cells merged as the form is corporate and we send to the customers and use it for a java tool that I do not control in order to obtain metrics.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
In the "ThisWorkbook" object:

You should test this to make sure it does what you want, when you want it.

Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    Target.EntireRow.AutoFit
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,104
Members
449,205
Latest member
ralemanygarcia

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