+ Reply to Thread
Results 1 to 5 of 5

Macro create sheets from master and copy data from list to new worksheet

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7

    Macro create sheets from master and copy data from list to new worksheet

    hi,

    i need a macro to create sheets from master and copy data from list to new worksheet. i have the following list:

    Name Age Gender
    Alex 23 Male
    Lee 32 Female
    Mike 53 Male
    Sandy 18 Female


    The macro has to copy the row data such as "Alex" (cell A2) and paste to the new sheet's range (H22:K22), copy "23" (Cell B2) and paste to the new sheet's range (M25:P25) and copy "Male" (Cell C2) and paste to the new sheet's cell H28. Just to remind that the new sheet are created from Master. The macro will continued the copy and paste of the next row data to the next sheet until the last row which contained data ("Sandy"). The new sheets created has to be rename according to Name columns data.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro create sheets from master and copy data from list to new worksheet

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Macro create sheets from master and copy data from list to new worksheet

    Hi John,

    The macro is not working. It occurred error on x = .Cells(i, "A").Value. Btw the list is in a worksheet named "RAW".
    i found one Macro:

    Sub Createnewtabs()

    Dim ws1 As Worksheet
    Dim MyCell As Range
    Dim MyRange As Range

    Set ws1 = ThisWorkbook.Worksheets("MASTER")

    Set MyRange = Sheets("RAW").Range("C10")
    Set MyRange = Range(MyRange, MyRange.End(xlDown))

    For Each MyCell In MyRange
    ws1.Copy After:=ThisWorkbook.Sheets(Sheets.Count)
    With ActiveSheet
    .Name = MyCell.Value
    .Range("H23:K23").Value = MyCell.Value
    End With
    Next MyCell

    End Sub

    This macro managed to create all the new worksheets that i wanted. But the problem is it didn't copy and paste data the way i wanted it to be.

    Thank you

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Macro create sheets from master and copy data from list to new worksheet

    hi anyone can help me with my problem

  5. #5
    Registered User
    Join Date
    11-17-2015
    Location
    Malaysia
    MS-Off Ver
    Office 2010
    Posts
    7
    Hi would anyone help to rectify the macro

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 08-22-2015, 11:39 PM
  2. [SOLVED] Macro to Copy Master Worksheet create and paste in new auto named worksheet
    By TheRealLethality in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 12:46 AM
  3. [SOLVED] Copy Data from different sheets weekly into a master list with data of the whole year
    By ec4excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 10:37 AM
  4. [SOLVED] Copy Data to Master List from Multiple Sheets
    By Jrub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 12:59 PM
  5. Replies: 10
    Last Post: 02-14-2011, 12:51 PM
  6. Copy Master worksheet data to other sheets!
    By akepler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2008, 06:47 PM
  7. Macro to create new sheets from master data sheet
    By adsigel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2006, 09:21 AM

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