Excel Copy Range from Master Sheet and Paste single data into a row in multiple worksheet

arijitirf

Board Regular
Joined
Aug 11, 2016
Messages
70
Hi!!
I am looking for help to copy a data range from Master Sheet and Paste data into a row in multiple worksheet within the workbook.

For instance, I want to copy range "C3:C403" and paste data into B3 continue till last sheet.

Code will copy C3 from Master Sheet and Paste it to B3 in Sheet 2
Code will copy C4 from Master Sheet and Paste it to B3 in Sheet 3
Code will copy C5 from Master Sheet and Paste it to B3 in Sheet 4

And this is will continue till the last page.

Thanks in advance. : )
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,408
copy range "C3:C403"
This will copy a range of cells.

This will copy one cell which is already included in C3:C403.
Please clarify in detail.

It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 

arijitirf

Board Regular
Joined
Aug 11, 2016
Messages
70

Copy range C3:C202 in worksheet name "Index" and paste C3 content into B4 in Stock Code 1. In the same way paste C4 content into B4 in Stock Code 2.

Thanks for your prompt response.
 

mumps

Well-known Member
Joined
Apr 11, 2012
Messages
10,408
Try this macro.
VBA Code:
Sub CopyPastedata()
    With Application
        .ScreenUpdating = False
        .Calculation = xlCalculationManual
    End With
    Dim v As Variant, LastRow As Long, srcWS As Worksheet, i As Long, x As Long: x = 1
    Set srcWS = Sheets("Index Page")
    LastRow = srcWS.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    v = srcWS.Range("C3:C" & LastRow).Value
    For i = LBound(v) To UBound(v)
        Sheets("Stock Code " & x).Range("B4") = v(i, 1)
        x = x + 1
    Next i
    With Application
        .ScreenUpdating = True
        .Calculation = xlCalculationAutomatic
    End With
End Sub
 

arijitirf

Board Regular
Joined
Aug 11, 2016
Messages
70
Try this macro.
VBA Code:
Sub CopyPastedata()
    With Application
        .ScreenUpdating = False
        .Calculation = xlCalculationManual
    End With
    Dim v As Variant, LastRow As Long, srcWS As Worksheet, i As Long, x As Long: x = 1
    Set srcWS = Sheets("Index Page")
    LastRow = srcWS.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    v = srcWS.Range("C3:C" & LastRow).Value
    For i = LBound(v) To UBound(v)
        Sheets("Stock Code " & x).Range("B4") = v(i, 1)
        x = x + 1
    Next i
    With Application
        .ScreenUpdating = True
        .Calculation = xlCalculationAutomatic
    End With
End Sub
Sir it works and fulfils my purpose. Thank you so much for gifted me this wonderful code which actually saves a lot of time..
 

Watch MrExcel Video

Forum statistics

Threads
1,132,973
Messages
5,656,174
Members
418,284
Latest member
LaurentT

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
Top