Forum Discussion
Robert1290
Nov 12, 2021Brass Contributor
Excel change row height based on font size
Hi, Is there a way of making excel change the row height, dependant on the font size in the cells, e.g. if font size is 12, then make row height 18... Thanks Rob
- Nov 12, 2021
That complicates things enormously. I'd either unmerge the cells, or resize the rows manually.
Robert1290
Nov 12, 2021Brass Contributor
HansVogelaar
Nov 12, 2021MVP
That complicates things enormously. I'd either unmerge the cells, or resize the rows manually.
- Robert1290Nov 12, 2021Brass ContributorHansVogelaar
Not to worry, appreciate you trying to help. I will just stick with 1st option of manually doing it. - HansVogelaarNov 12, 2021MVP
That is probably not an attractive option.
- Robert1290Nov 12, 2021Brass ContributorHansVogelaar
In that instance, would you propose just making cell a1 a page width then and tall enough to accomodate wrap?
If so, within the same excel I am adding many tables, so I am using several columns. - HansVogelaarNov 12, 2021MVP
Sorry about that. In the future, try to avoid merged cells, especially if you want to wrap text.
- Robert1290Nov 12, 2021Brass ContributorHansVogelaar
I have around 10,000 merged cells, so to unmerge, then re merge will take hours. I will have to take the first route you mentioned then and just complete the tasks manually. - HansVogelaarNov 12, 2021MVP
Again: I'd unmerge the cells.
- Robert1290Nov 12, 2021Brass ContributorHansVogelaar
It can vary, but 95% of it are cells B - AJ are always merged.
30% of the time, 1 row, 20% 2 rows merged as well, 20% 3 rows merged 20% 4 rows, 10% more than 4 rows, all as well as horizontally B-AJ. - HansVogelaarNov 12, 2021MVP
Where are the merged cells? All in the same columns (for example B/C)? Or does it vary from row to row? And are there multiple merged cells in the same row?
- Robert1290Nov 12, 2021Brass ContributorHansVogelaar
Ok, so probably need to be manual then. Most of them are 1 size which means I can just apply to all rows. code can be written to just work on a row which has only been merged horzontally that would still help alot. Is this possible without it being too complicated?
Rob