Excel VB Copy Paste alternate Row

Dpa24

New Member
Joined
Mar 7, 2019
Messages
2
I have data in even row i would like to copy data from even row and paste into odd row and loop goes to last row of sheet.
ABC
1
2Data1Data1Data1
3
4Data2Data2Data2
5
6Data3Data3Data3
7

<tbody>
</tbody>



ABC
1
2Data1Data1Data1
3Data1Data1Data1
4Data2Data2Data2
5Data2Data2Data2
6Data3Data3Data3
7Data3Data3Data3

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 342px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Data1

<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi & welcome to MrExcel
How about
Code:
Sub Dpa24()
   With Range("A2", Range("A" & Rows.count).End(xlUp).Offset(, 2))
      .SpecialCells(xlBlanks).FormulaR1C1 = "=r[-1]c"
      .Value = .Value
   End With
End Sub
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,290
Members
449,149
Latest member
mwdbActuary

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