#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default row height

Hi,

I want to use the range below and then check each row in that range for row
height, if the row height is = to 12.75 or less then I want to change the
row height to say 11.75 and all other rows in the range leave as they are.

Range("A101", Range("End")
range name ("End") is in column A

Thanks
James


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default row height

Hi
then you have to loop through all rows. and check each individually

--
Regards
Frank Kabel
Frankfurt, Germany

"James Montgomery" schrieb im Newsbeitrag
...
Hi,

I want to use the range below and then check each row in that range

for row
height, if the row height is = to 12.75 or less then I want to

change the
row height to say 11.75 and all other rows in the range leave as they

are.

Range("A101", Range("End")
range name ("End") is in column A

Thanks
James



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default row height

Frank I tried this but it changes all the rows to the new height

For Each row In Range("A101", Range("End").Offset(0, 0))
If RowHeight <= 12.75 Then
row.RowHeight = 11
End If
Next row

can you help

James


"Frank Kabel" wrote in message
...
Hi
then you have to loop through all rows. and check each individually

--
Regards
Frank Kabel
Frankfurt, Germany

"James Montgomery" schrieb im Newsbeitrag
...
Hi,

I want to use the range below and then check each row in that range

for row
height, if the row height is = to 12.75 or less then I want to

change the
row height to say 11.75 and all other rows in the range leave as they

are.

Range("A101", Range("End")
range name ("End") is in column A

Thanks
James





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default row height

Hi
try something like the following:

dim irows as long
with activesheet
for irows=101 to .Cells(Rows.Count, "A").End(xlUp).Row
if .rows(irows).rowheigth = 12.75 then
.rows(irows).rowheigth = 11
end if
next
end with

--
Regards
Frank Kabel
Frankfurt, Germany

"James Montgomery" schrieb im Newsbeitrag
...
Frank I tried this but it changes all the rows to the new height

For Each row In Range("A101", Range("End").Offset(0, 0))
If RowHeight <= 12.75 Then
row.RowHeight = 11
End If
Next row

can you help

James


"Frank Kabel" wrote in message
...
Hi
then you have to loop through all rows. and check each individually

--
Regards
Frank Kabel
Frankfurt, Germany

"James Montgomery" schrieb im Newsbeitrag
...
Hi,

I want to use the range below and then check each row in that

range
for row
height, if the row height is = to 12.75 or less then I want to

change the
row height to say 11.75 and all other rows in the range leave as

they
are.

Range("A101", Range("End")
range name ("End") is in column A

Thanks
James






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
Resizing row height to dynamically fit height of text box Jon Excel Discussion (Misc queries) 1 August 8th 05 01:37 PM
Set new row height based on current height puffy Excel Programming 2 January 14th 04 12:44 AM


All times are GMT +1. The time now is 04:39 AM.

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

About Us

"It's about Microsoft Excel"