+ Reply to Thread
Results 1 to 3 of 3

how to add one same word on every 10th line

  1. #1
    Registered User
    Join Date
    08-15-2006
    Posts
    3

    how to add one same word on every 10th line

    hi,
    i have excel with 50000 lines.i have to insert this word "###break###" on every 10 th line.how to do this?
    i tried macro but cannot able to do.i need help.advance thanks for your help.

  2. #2
    Bob Phillips
    Guest

    Re: how to add one same word on every 10th line

    For i = Cells(Rows.Count,"A").End(xlup).Row To 10 Step -1
    If i Mod 10 = 0 Then
    Rows(i).Insert
    cells(i,"A").Value = "###break###"
    End If
    Next i

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "elavenil" <elavenil.2ckkqd_1155625503.7442@excelforum-nospam.com> wrote in
    message news:elavenil.2ckkqd_1155625503.7442@excelforum-nospam.com...
    >
    > hi,
    > i have excel with 50000 lines.i have to insert this word
    > "###break###" on every 10 th line.how to do this?
    > i tried macro but cannot able to do.i need help.advance thanks for your
    > help.
    >
    >
    > --
    > elavenil
    > ------------------------------------------------------------------------
    > elavenil's Profile:

    http://www.excelforum.com/member.php...o&userid=37522
    > View this thread: http://www.excelforum.com/showthread...hreadid=571670
    >




  3. #3
    Registered User
    Join Date
    08-15-2006
    Posts
    3
    wooooooo thanks Bob Phillips

+ 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