Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default How can I change the row height of specified rows?

I want to change the height of every 4th row. Is this possible? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default How can I change the row height of specified rows?

Ok, try this:
Sub demo()
Dim i As Integer
With Range("a1")

For i = 1 To 200

..Offset(i * 4, 0).Select
Selection.RowHeight = 25

Next i
End With

End Sub



--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Di_W" wrote:

I want to change the height of every 4th row. Is this possible? Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How can I change the row height of specified rows?

Manually

Enter numbers 1 to 4 in an unused column.

Select those 4 cells and right-click drag down as far as you wish.

Release and "copy cells"

Autofilter for number 4

Then F5SpecialVisible Cell OnlyOK

FormatRowHeight........set a height.

Get rid of Autofilter. Delete unused column.

Or run a macro.

Sub rowht()
For i = 4 To Cells(Rows.Count, "a").End(xlUp).Row Step 4
Rows(i).RowHeight = 24
Next i
End Sub


Gord Dibben MS Excel MVP


On Mon, 11 Jan 2010 12:16:02 -0800, Di_W
wrote:

I want to change the height of every 4th row. Is this possible? Thanks!


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
How to change default row height rmt131 Excel Discussion (Misc queries) 0 August 18th 06 09:18 PM
HOW DO YOU FIX A ROWS HEIGHT melissa Excel Discussion (Misc queries) 1 April 27th 06 05:01 PM
change excel row height without showing hidden rows LL Excel Worksheet Functions 1 April 15th 05 06:24 PM
Change height of row Pam MacT Excel Discussion (Misc queries) 2 January 5th 05 01:54 AM
How do I change row height to 16.0? I get choice of 15.6 (26 Pix. jlloyd Excel Discussion (Misc queries) 4 December 9th 04 04:47 PM


All times are GMT +1. The time now is 03: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"