Excel - move and repeat contents of cells, and move contents of other cells as indicated in example

Column B contains a heading above a short list of 3 line items. The requirement is for the heading to be moved to the the cell in column A, adjacent to the top row top row of each item list and repeated for each top row item.
And the hyperlink - Google Earth Placement Mark (KMZ) for each item is to be moved into the same header row in column C.

I hope this makes sense. Please have a look at the example where the cells to be moved have already been done for the first heading
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


pls try
Sub Macro1()

For Each c In Range(Range("B1"), Range("B" & Rows.Count).End(xlUp))
    If c = "Licence Area" Then str2BeCopiedAddress = c.Offset(-2).Address
    If c.Offset(, 2) <> "" And c.Offset(, 2) <> "Broadcaster Callsigns" Then
        c.Offset(, -1).PasteSpecial xlPasteAllExceptBorders
        c.Offset(, 1).PasteSpecial xlPasteAllExceptBorders
    End If
For Each c In Range(Range("B1"), Range("B" & Rows.Count).End(xlUp))
    If c = "Licence Area" Then c.Offset(-2).ClearContents
End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gregfthompsonAuthor Commented:
Thanks you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.