+ Reply to Thread
Results 1 to 2 of 2

copy rows from a main sheet to 17 new created different sheets

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    Algeria
    MS-Off Ver
    Excel 2007
    Posts
    1

    Smile copy rows from a main sheet to 17 new created different sheets

    Hello,
    i am a new user and i wished the kind support of other members. i had a main excel worksheet named (recap) of about 1000 rows and i want to dispatch these rows among 17 new sheets depending on the value of the fifth column (E) so what I need exactly is a vba subfunction function that will check the value out of 17 value (Alger, Ain defla, T.O,Boumerdas,Bouira,Msila, Medea,Tipaza,Blida…..)And every time it will create a new worksheet with the same name in this column and paste the row in this new worksheet (of course the creation of the new corresponding sheet will be only the first time but after the function should only paste the row direct in the sheet created before)
    To summarize the function will create 17 new worksheets and will copy the rows depending on the fifth column value to the corresponding sheets.

    note: i attached the file that i need to make the action on it.

    Thanks for your help,
    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 rows from a main sheet to 17 new created different sheets

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button
    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]

+ 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