+ Reply to Thread
Results 1 to 10 of 10

Copy paste and delete some cell then repeat until all rows are done

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Question Copy paste and delete some cell then repeat until all rows are done

    Hi
    New to this

    I am looking for help to complete this macro and stuck at one point.

    I have and Input sheet which contains some data.
    What i need to do is create a new worksheet for all the rows and rename with the person name (from Column A)
    That part i have managed to do.

    What i need next is the Titles (Row 1) and the data of that person copied into their sheet, the data deleted from the input sheet, then repeated until all the data has been copied to each sheet and the input sheet is clear apart from the titles.

    I have attached a copy of the file with what i have managed so far.

    Very grateful for anyone’s help

    Mike
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy paste and delete some cell then repeat until all rows are done

    Try this code. It takes care of creating new sheets if required and copy pasting the data.
    Please Login or Register  to view this content.
    Copy the code to a standard module.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy paste and delete some cell then repeat until all rows are done

    Thanks for looking at my problem
    i have tried running your macro and i get an error at Next i

    it stop there
    nothing had been add to the workbook


    do i add your macro to the end of mine or will it do it all using your

    could you please look again
    thanks
    Mike

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy paste and delete some cell then repeat until all rows are done

    Mine is a complete macro. So you should run it alone.

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy paste and delete some cell then repeat until all rows are done

    created a new module with your date and ran it
    it stop at Nexti

    Please Login or Register  to view this content.
    Any idea`s why

    thanks
    Mike

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy paste and delete some cell then repeat until all rows are done

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy paste and delete some cell then repeat until all rows are done

    It should be
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-14-2012
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy paste and delete some cell then repeat until all rows are done

    Thanks i will try that and let you know what happens

    again many thanks for your help

    mike

  9. #9
    Registered User
    Join Date
    09-14-2012
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Copy paste and delete some cell then repeat until all rows are done

    Thanks you so much
    works like a treat

    Mike

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy paste and delete some cell then repeat until all rows are done

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    I will mark it for you this time.

+ 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