Problem is, that will change when font/size are changed.
I once used an unusual workaround to find the width of a string in a certain font/size on the fly. I wrote a piece of code that:
Wrote the string to a cell in a hidden column on my worksheet, set the font/size properties of that cell to match, used the AutoFit function to adjust the width of the column, then returned the columns width as the value I wanted.
A crude manual method would be to put the following string into a textbox in the Font and Size you plan to use, and size the textbox so the string just fits on one line:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.