Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Set new row height based on current height

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Set new row height based on current height

something like :-

ActiveCell.rowheight = ActiveCell.rowheight +

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Set new row height based on current height

thanks - exactly what I needed

BrianB wrote in message ...
something like :-

ActiveCell.rowheight = ActiveCell.rowheight + 5


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set a minimum row height a the same time with autofit row height Julie B New Users to Excel 2 May 5th 23 07:44 PM
Row Height stopped growing and Auot-Fit Row Height does not work PSULionRP Excel Discussion (Misc queries) 0 May 19th 09 07:59 PM
the row height should be excatly the height of the data jaggu Excel Discussion (Misc queries) 2 November 6th 08 10:30 PM
need to dbl row height without changing height of cell next to it Excel-Illiterate New Users to Excel 1 May 16th 06 01:08 AM
Resizing row height to dynamically fit height of text box Jon Excel Discussion (Misc queries) 1 August 8th 05 01:37 PM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"