Copy Cells from Every Other Two Rows to Merged Cells on Another Sheet

AmyZZZZZZZ

New Member
Joined
Nov 16, 2017
Messages
6
Hi, I am new to VBA and I am trying to copy texts from cells every other two rows from one sheet to a list of merged cells on another sheet.
For example, I want values from B3,B6,B9,etc. to go to another sheets matching with merged cells (A2:A9),(A10:A17),(A18:A25) and so on.

Could anyone help me with that?
Thanks a lot!!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
try this on a copy of you file
make sure your original sheet it the active one.

Adjust the code for the name of you destination sheet.

Code:
Sub Do_it()
For r = 3 To Range("B" & Rows.Count).End(xlUp).Row Step 3
wr = 8 / 3 * r - 6
With Worksheets("Sheet2")
.Range(.Cells(wr, 1), .Cells(wr + 7, 1)) = Cells(r, "B")
End With
Next r
End Sub

hth,
Ross
 
Upvote 0

Forum statistics

Threads
1,223,604
Messages
6,173,319
Members
452,510
Latest member
RCan29

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