+ Reply to Thread
Results 1 to 2 of 2

add an extra row

  1. #1
    TS
    Guest

    add an extra row

    I have an excel sheet that I want to add an empty row after each row. It
    should be like one with data and one empty row. How to accomplish this?
    --
    TS

  2. #2
    sebastienm
    Guest

    RE: add an extra row

    Hi,

    Try the following:
    '--------------------------------------------------------
    Sub test()
    InsertSpaceRow ActiveSheet, 3, 10
    End Sub

    'takes a sheet , a start row number and an end row number
    Sub InsertSpaceRow(Wsh As Worksheet, rowStart As Long, rowEnd As Long)
    Dim i As Long

    Application.ScreenUpdating = False
    For i = rowEnd To rowStart Step -1
    Wsh.Range(i & ":" & i).EntireRow.Insert
    Next
    End Sub
    '------------------------------------------------------------
    --
    Regards,
    Sébastien


    "TS" wrote:

    > I have an excel sheet that I want to add an empty row after each row. It
    > should be like one with data and one empty row. How to accomplish this?
    > --
    > TS


+ 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