vba copy range, paste single entries into multiple worksheets same cell

runeyjam1

New Member
Joined
Jun 29, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello:

I would greatly appreciate your help with following. I am trying to copy a range of cells (A2:A215) on one Worksheet called DataBase and paste the single values from each row in that range (A2, A3, A4, A5...A215) into cell B1 on multiple Worksheets ranging from Worksheet 2 to Worksheet 215. For example let's say I have the following data in A2:A5 on DataBase

Column A on DataBase
A2 = 12
A3 = 82
A4 = 54
A5 = 74
...
A215 = 45

I would like to achieve the following:
- Paste 12 in cell B1 on Worksheet215
- Paste 82 in cell B1 on Worksheet214
- Paste 54 in cell B1 on Worksheet213
- Paste 74 in cell B1 on Worksheet212
...
- Paste 45 in cell B1 on Worksheet2
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this on a copy of your file.

VBA Code:
Option Explicit
Sub Copy_To_B1()

    Dim wsSrc As Worksheet, wsDest As Worksheet
    Dim c As Range, i As Long
    Set wsSrc = Sheets("Database")
    i = 215
    
    For Each c In wsSrc.Range("A2:A215")
        c.Copy Sheets(i).Range("B1")
        i = i - 1
    Next c

End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

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