我想将数据工作簿的最终输入工作表仅作为值复制到新工作簿
我已经尝试过,但是它将数据粘贴为值
Sub CopyToNew()
Sheets("Final Input").Copy
End Sub
答案 0 :(得分:0)
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")
复制到新工作簿的第一个工作表中。 newWbPath
与ThisWorkbook保存在同一文件中。newWb
用newWb.Close
关闭。