Copying cells from one worksheet to another, within the sameworkbook
The part that simply copies the values is the line;
..PasteSpecial (xlValues)
If you add in this line;
..PasteSpecial (xlFormats)
underneath it will also copy the formatting. So this part of the code
would be;
With Selection
..PasteSpecial (xlValues)
..PasteSpecial (xlFormats)
End With
End Sub
|