I want to copy the final input sheet of data workbook to a new workbook as only values
I've tried this but it pastes the data as values
Sub CopyToNew()
Sheets("Final Input").Copy
End Sub
Option Explicit
Public Sub TestMe()
Dim newWb As Workbook
Dim newWbPath As String: newWbPath = ThisWorkbook.Path & "\NewWB.xlsx"
Set newWb = Workbooks.Add
ThisWorkbook.Worksheets("FinalCountDown").Cells.Copy
newWb.Worksheets(1).Cells.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
newWb.SaveAs newWbPath
newWb.Close
End Sub
ThisWorkbook("FinalCountDown")
to the first worksheet of a new Workbook. newWbPath
. newWb
is closed with newWb.Close
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.