999HelpPlease
New Member
- Joined
- Jul 16, 2014
- Messages
- 35
I need to take the formats from one sheet and copy to another sheet and the values of the original sheet and post to a separate sheet.
All my info is on sheet 2. I need to post the formats to Sheet 1 and the values to Sheet 3.
This is what I have but it doesn't work.
Worksheets("Sheet2").Activate
Range("A1:d9").Select
Selection.Copy
Worksheets("Sheet1").Activate
ActiveSheet.PasteSpecial xlPasteFormats
Worksheets("Sheet2").Activate
Range("A1:d9").Select
Selection.Copy
Worksheets("Sheet3").Activate
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
Is there an easier way to write this code?
All my info is on sheet 2. I need to post the formats to Sheet 1 and the values to Sheet 3.
This is what I have but it doesn't work.
Worksheets("Sheet2").Activate
Range("A1:d9").Select
Selection.Copy
Worksheets("Sheet1").Activate
ActiveSheet.PasteSpecial xlPasteFormats
Worksheets("Sheet2").Activate
Range("A1:d9").Select
Selection.Copy
Worksheets("Sheet3").Activate
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
Is there an easier way to write this code?