Happy Monday everyone!
Is there a quick way to modify my code below to avoid Excel copying formatting from one sheet to another. Basically, I want to copy values only from "Sheet1" to "Template". I know how to do it using Select, Copy & Paste commands but I find my code much simpler and efficient. Thanks in advance!
Is there a quick way to modify my code below to avoid Excel copying formatting from one sheet to another. Basically, I want to copy values only from "Sheet1" to "Template". I know how to do it using Select, Copy & Paste commands but I find my code much simpler and efficient. Thanks in advance!
Code:
Sub cpydata()Sheets("Sheet1").Select
Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row).Copy Worksheets("Template").Range("D8")
Range("B1:B" & Cells(Rows.Count, "B").End(xlUp).Row).Copy Worksheets("Template").Range("H8")
'other columns to follow...
End Sub