getting content from 1 worksheet onto several at once

travizwebb1

New Member
Joined
May 26, 2011
Messages
2
Excel 2007,

I have Worksheet1 with 10 columns that start at A1-J1 and end at A20-J20. Each column contains different information (A: Address, B: Phone Number, C: Fax Number, etc.).

Here is what I need:

I need to distribute all of the information in each individual row in worksheet1 to it's own individual worksheet. For instance, I need everything from A1-J1 to populate into Worksheet2 in columns A1-J1, everything from A2-J1 to populate into worksheet3 in columns A1-J1, everything from A3-J3 to populate out to worksheet4 in columns A1-J1, etc.

I do not want to copy and paste each row into it's own worksheet, as I have to do this to several files, and many of them can contact up to 100 rows.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I hope to clear up some ambiguity here....

I need to distribute all of the information in each individual row in worksheet1 to it's own individual worksheet.

I do not want to copy and paste each row into it's own worksheet,

I take it some sheets exist and you either want to tack the info onto the bottom of this or do you wish to overwrite the data?
 
Upvote 0
Give this a try...

I see Dave has asked a few questions, but here is something that could be close to what you desire.

Code:
Sub TransferData()
    Dim wsSrc As Worksheet: Set wsSrc = Sheets("Worksheet1")
    Dim wsNew As Worksheet
    Dim LR As Long: LR = Range("A" & Rows.Count).End(xlUp).Row
    Dim wsName As String
    wsName = "Worksheet"
    Dim i As Long
    For i = 1 To LR
        Set wsNew = ActiveWorkbook.Worksheets.Add
        wsNew.Name = wsName & i + 1
        wsSrc.Range("A" & i & ":J" & i).Copy Destination:=wsNew.Range("A1")
    Next i
End Sub
 
Upvote 0
Not that it would make it much difference but seeing as the ranges are of equal dimension could you avoid copying

Code:
wsSrc.Range("A" & i & ":J" & i).Copy Destination:=wsNew.Range("A1")

could be

Code:
wsNew.Range("A1:J1") = wsSrc.Range("A" & i & ":J" & i)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top