+ Reply to Thread
Results 1 to 3 of 3

Row height and spacing

Hybrid View

  1. #1
    Registered User
    Join Date
    03-20-2008
    Posts
    3

    Row height and spacing

    Ok, this is an easy one for all you experts out there. What I need to do is every 12 rows of normal height, I need to insert a row that is 5 times that height. So, 12 rows at 15, then 1 row at 75, 12 rows at 15, 1 at 75, and so on. This needs to span about 3000 rows. There has got to be an easier way to do this than changing every 13th row one at a time but I don't know what it is. Can anyone help on this??

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you hold the CTRL key down and select every 12th row, then you can adjust row height once and it will apply to all selected rows.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Quote Originally Posted by jasonthatsme
    Ok, this is an easy one for all you experts out there. What I need to do is every 12 rows of normal height, I need to insert a row that is 5 times that height. So, 12 rows at 15, then 1 row at 75, 12 rows at 15, 1 at 75, and so on. This needs to span about 3000 rows. There has got to be an easier way to do this than changing every 13th row one at a time but I don't know what it is. Can anyone help on this??
    Hi,

    The following VBA procedure will do it. Change the loop counter 3000 if the number of rows are different, or the starting A1 point if necessary.

    Sub SetRowHeights()
    Dim x As Integer
    Application.ScreenUpdating = False
    For x = 1 To 3000 / 13
        Range("A1").Cells(x * 13).RowHeight = 75
    Next x
    End Sub
    Rgds

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1