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

arijitirf

Board Regular
Joined
Aug 11, 2016
Messages
98
Office Version
  1. 2016
Platform
  1. Windows
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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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).
 
Upvote 0
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
 
Upvote 0
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..
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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