• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA - Copy Paste Error (Merged Cells)

Hi Experts!

I am not able to copy paste the range to another sheet as I am having some merged cells on the Sheet "Signatories" which needs to be placed on the Sheet "TANP". Can anyone help me to fix this!

Code:
 Sub Signatories()

Worksheets("Signatories").Range("A1:AN15").copy

With Sheets("TANP").Range("J" & Rows.Count).End(xlUp).Offset(1, 0)
     .PasteSpecial xlPasteFormats
     .PasteSpecial xlPasteValues
End With

End Sub
 
Don't use merged cells. Ever. It's nothing more than visual fluff and complicates further data analysis and visualization.

If you use it, you must be willing to suffer consequences.

Now, having said that. There are ways to work around it, but you'll need to provide sample workbook with enough data and manually created expected output for us to help you effectively.
 
Back
Top