zepharoz
New Member
- Joined
- Jul 5, 2023
- Messages
- 11
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- Platform
- Windows
Hi, been trying to figure out why it doesn't work and honestly need the help in case I go insane from this. Sheet1 contains some data but irrelevant and a Button for which runs the code. Sheet2 contains all the formulas, formatting, and heading. Goal is to press button in sheet1, which runs the code that copies sheet2 into a new workbook without any formulas but retains formatting. Code is:
Private Sub CommandButton1_Click()
Sheets("Sheet2").Copy
Cells.Copy
Range("A1").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End Sub
Thanks in advance.
Private Sub CommandButton1_Click()
Sheets("Sheet2").Copy
Cells.Copy
Range("A1").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End Sub
Thanks in advance.