+ Reply to Thread
Results 1 to 3 of 3

Insert cell text every 5 rows in a column

Hybrid View

  1. #1
    Mike Mike
    Guest

    Insert cell text every 5 rows in a column

    I need to go from this:
    apple
    orange
    widget
    7845
    santa
    34blue
    test
    witch
    never
    45hold
    74more

    to this:
    apple
    orange
    widget
    7845
    santa
    TEXT
    34blue
    test
    witch
    never
    45hold
    TEXT
    74more

    Anyone know how to do this?

    Regards
    Mike




  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See your original post

  3. #3
    gumby
    Guest

    Re: Insert cell text every 5 rows in a column

    Sub InsertRow()
    Dim LastRow As Long
    Dim RowNdx As Long
    LastRow = Cells(Rows.Count, "A").End(xlUp).Row
    For RowNdx = 6 To LastRow Step 6
    Rows(RowNdx).Insert
    Next RowNdx
    End Sub

    Mike Mike wrote:
    > I need to go from this:
    > apple
    > orange
    > widget
    > 7845
    > santa
    > 34blue
    > test
    > witch
    > never
    > 45hold
    > 74more
    >
    > to this:
    > apple
    > orange
    > widget
    > 7845
    > santa
    > TEXT
    > 34blue
    > test
    > witch
    > never
    > 45hold
    > TEXT
    > 74more
    >
    > Anyone know how to do this?
    >
    > Regards
    > Mike



+ 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