VBA to copy data from multiple cells between sheets

Hazman_08

New Member
Joined
Aug 30, 2023
Messages
12
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have a workbook with 2 sheets. Sheet1 has range D19:I22. Sheet2 has range E5:J8. What I want to do is have data entered into one cell copied to a specific other cell on the other sheet, and vice versa. For example, Sheet1 D19 copied to Sheet2 E5, or Sheet2 E5 copied to Sheet1 D19. I think this would be a Worksheet_Change of some sort. Can someone please tell me if/how this can be done?
 
I spoke too soon. On the second run onwards, I get a "Copy method of Range class failed" error
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
OK. Here's a link to the file I created to test the code: hazman.xlsm
It uses the exact same code I provided in post #2.
Any value entered into the range D19:I22 on sheet 1 gets copied to its corresponding cell in range E5:J8 on sheet 2.
Any value entered into the range E5:J8 on sheet 2 gets copied to its corresponding cell in range D19:I22 on sheet 1.
If you can't get it to work, then I'll need you to share your file for me to interrogate to determine what's going wrong - if you want me to look at this again.
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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