Set new row height based on current height

P

puffy

Many posts have discussed the fact that text in cells often does not
print the exactly as it looks when viewed on screen.

I have also come across this problem. Consider a a simple worksheet
with two columns. Column A contains cells where users can choose the
"Subject" from a drop down list. Column B is blank - users can
provide a textual description of their subject in that cell. It is
formatted to "Wrap text", so if users want to write 10 lines, the row
height will adjust automatically. It looks fine on screen, but when I
want to print, the top half and bottom half of the first and last
lines are often cut off.

To solve this problem, I would like to run a macro that determines the
current row height (once users have entered their comments) and then
adds, 5 say, to that height so that all text will fit neatly when
printed. eg: If, after entering comments, the row height is 31.25, I
would like to automatically adjust the row height to 36.25.

Does anyone know the code that would serve this purpose?

TIA
neil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top