如果我理解正确,您想将当前工作表复制到现有工作簿上的新工作表中,去掉任何公式或 VBA?这应该这样做。
Sub transferStrip(destFile As String)
Dim wbSource As Workbook
Dim wbDest As Workbook
Dim shCopy As Worksheet
Dim shPaste As Worksheet
Dim chtIndex As Integer
Set wbSource = ActiveWorkbook
Set wbDest = Workbooks.Open(destFile)
Set shCopy = wbSource.Sheets("[SheetName]")
shCopy.UsedRange.Copy
Set shPaste = wbDest.Sheets.Add(After:=wbDest.Sheets(wbDest.Sheets.Count))
shPaste.Range("A1").PasteSpecial (xlPasteFormats)
shPaste.Range("A1").PasteSpecial xlPasteValues
chtIndex = 1
For Each ch In shCopy.ChartObjects
shCopy.ChartObjects(chtIndex).CopyPicture
shPaste.Paste
shPaste.Shapes(chtIndex).Left = shCopy.ChartObjects(chtIndex).Left
shPaste.Shapes(chtIndex).Top = shCopy.ChartObjects(chtIndex).Top
Next ch
wbDest.Close (True)
End Sub
您需要更改以将 [SheetName] 更改为您希望从源工作簿中复制的工作表的名称,并将您希望复制到的工作簿的路径作为 destFile 传递。