Copy & Paste Values in Single Cells to Merged Cells via VBA

browncountry

New Member
Joined
Feb 2, 2019
Messages
13
A
B
C
D
E
F
G
H
I
J
1
Kit P/N
Kit S/N
Kit Part
Kit Parts S/N
Kit P/N
Kit S/N
2
Kit 1
123
Part 1
001
Kit 1
123
3
Part 2
002
Kit 2
456
4
Part 3
003
Kit 3
789
5
Kit 2
456
Part 1
004
6
Part 2
005
7
Kit 3
789
Part 1
006
8
Part 2
007
9
Part 3
008
10
Part 4
009

<tbody>
</tbody>

If anyone has some time to help, I would like to be able to copy & paste values from single cells into merged ones via VBA. I can do this manually, but it gets tedious even with formulas.

In the table above, imagine Kit 1 is merged from A2:A4 and Kit 1 S/N is merged from B2:B4, Kit 2 is merged from A5:A6 and Kit 2 S/N is merged from B5:B6, and Kit 3 is merged from A7:A10 and Kit 3 S/N is merged from B7:B10.

The amount of kits vary on any particular sheet. I have formulas that create serial numbers for Columns I and J. I would like to select all serial numbers in Column J into the corresponding merged cells of Column B. Please help if you can. This would be a big time saver for me. Thanks in advance.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,186
Messages
6,123,537
Members
449,106
Latest member
techog

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