+ Reply to Thread
Results 1 to 5 of 5

Need a Macro to Cut String from the second occurence of a word, and paste into the next ce

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    k
    MS-Off Ver
    Excel 2003
    Posts
    0

    Need a Macro to Cut String from the second occurence of a word, and paste into the next ce

    Dear Experts,

    I have a very long text: (law articles) and i would like to put every article in a different cell in excel, using a macro.

    The text i have is like below:

    Article 1- Hello this is the first article ..................... Article 2- And this is the second article ...................
    .............. Article 3- this is the 3rd one.

    I copy and paste this whole text into cell "D1".

    I would like macro count the word "Article", and starting from the second occurrence of this word, cut rest of the text and paste into the cell below.
    Than it'll run the same macro for the cell below and this way every article will be in a different cell; i expect the outcome as follows:

    D1 Article 1- Hello this is the first article .....................
    D2 Article 2- And this is the second article .................................
    D3 Article 3- this is the 3rd one.

    Could anybody help with this please?

    Thank you

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Need a Macro to Cut String from the second occurence of a word, and paste into the nex

    try

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-03-2011
    Location
    k
    MS-Off Ver
    Excel 2003
    Posts
    0

    Re: Need a Macro to Cut String from the second occurence of a word, and paste into the nex

    Thanks a lot Andy, this is great.
    I wish i had asked this before i manually copied the first 500 articles, but anyway i still have much more to go.

  4. #4
    Registered User
    Join Date
    02-03-2011
    Location
    k
    MS-Off Ver
    Excel 2003
    Posts
    0

    Re: Need a Macro to Cut String from the second occurence of a word, and paste into the nex

    Thanks a lot Andy, this is great.
    I wish i had asked this before i manually copied the first 500 articles, but anyway i still have much more to go.

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need a Macro to Cut String from the second occurence of a word, and paste into the nex

    Try:

    Please Login or Register  to view this content.
    Edit: Didn't show it as solved to me. My apologies
    Last edited by stnkynts; 04-03-2013 at 03:40 PM. Reason: forum glitch?!?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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