Afternoon,
I have a spreadsheet with rows 20 - 34 having two merged columns B-E and F-J (I know nobody likes merged cells, but i need it to be this way as the people who are using the spreadsheets are proper novices and therefore rubbish at entering information correctly.)
I have managed to cobble together a macro that auto adjusts the height of the columns to auto fit the text.
This works by comparing the merged active cell text length LEN with the other in the same row and if it has more text then adjusts the height to fit. See the code that compares and trigger the actual resizing code below:
and that triggers the code to actually do it.
to get it to work I am having to trigger it from the worksheet_selectionchange. This only works when you click on the cell and not when you add/remove text.
I have tried triggering from worksheet_change, but absolutly nothing happens (not when you type, not when you click.)
does anyone know why and how to fix it? This is sending me absolutly mental.
Thanks in advance.
Bookmarks