Hey Guys!
Im looking for a VBA code that will copy row 1 from column A to M , and will paste row 1, a line below every time it finds a merged cell. And I want this to loop until the last Merged cell. Please refer to my code below and see if it makes any sense to you.
Can someone please help. Im sure this is a very simple code, but Im just a beginner and cant figure it out.
My Code:
Sub Insertrow1 ()
Rows("1:1").Select
Selection.Copy
' Find next merged cell (Need help on this line)
ActiveCell.Offset(1, 0).Select
Selection.Insert Shift:=xlDown
' Loop (Need Help on this line)
End Sub
Thank you,
Omkar V
Im looking for a VBA code that will copy row 1 from column A to M , and will paste row 1, a line below every time it finds a merged cell. And I want this to loop until the last Merged cell. Please refer to my code below and see if it makes any sense to you.
Can someone please help. Im sure this is a very simple code, but Im just a beginner and cant figure it out.
My Code:
Sub Insertrow1 ()
Rows("1:1").Select
Selection.Copy
' Find next merged cell (Need help on this line)
ActiveCell.Offset(1, 0).Select
Selection.Insert Shift:=xlDown
' Loop (Need Help on this line)
End Sub
Thank you,
Omkar V