+ Reply to Thread
Results 1 to 5 of 5

Add Horizontol Rows Every X Row

  1. #1
    Registered User
    Join Date
    08-23-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2010
    Posts
    3

    Add Horizontol Rows Every X Row

    Hi,

    I want to ask the following question:

    This is my Excel:How can i add a empty row every fourth row, or every third row etc....
    I have maybe 1000 rows filled with text but i have to add a empty row to fill in a new text.

    1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    2. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    3. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    4. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    5. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    6. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    7. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    8. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    9. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    10. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    etc...

    Hope to hear from you!

    Naftalie

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Add Horizontol Rows Every X Row

    a few examples, insert empty row from column A to Z

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    08-23-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Add Horizontol Rows Every X Row

    Hi Leo thanks for your reply. I can use this as a VBA?
    Last edited by PeezInside; 08-23-2015 at 10:17 AM.

  4. #4
    Registered User
    Join Date
    08-23-2015
    Location
    Netherlands
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Add Horizontol Rows Every X Row

    Hi Leo thanks for your reply. I can use this as a VBA? But what if i want 2 empty cells from row 3 on, how can i adjust the following code: I tried to change it to > 2 empty but it didnt work

    Sub Emptyrow() ' data starts at row 1, every 3 rows 1 empty

    Dim test As String, lr As Long
    test = ActiveSheet.Name
    lr = Sheets(test).Range("A" & Rows.Count).End(xlUp).Row
    For x = 4 To lr * 3 Step 3
    Range("A" & x, "Z" & x).Insert shift:=xlDown
    x = x + 1
    Next
    End Sub

  5. #5
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Add Horizontol Rows Every X Row

    for 2 empty rows chance
    this
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-16-2015, 11:46 AM
  2. Replies: 6
    Last Post: 06-07-2014, 10:07 AM
  3. Merge Duplicate Rows unique values into single rows for an infinite amount of columns/rows
    By aimeecrystalaid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 08:43 PM
  4. [SOLVED] Delete blank rows between data rows, shift rows up, then repeat
    By excelactuary in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 11:53 AM
  5. Replies: 6
    Last Post: 03-04-2013, 12:03 AM
  6. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  7. Replies: 6
    Last Post: 08-18-2012, 05:00 AM

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