将粘贴范围从一个工作表复制到另一个工作表

问题描述 投票:0回答:1

我尝试将代码从N3:Y34复制到新工作表“计算所得的值”上的A1,但没有用。我已经尝试过.Paste.PasteSpecial,但没有任何变化。

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9WekFpUS5wbmcifQ==” alt =“它仅在新表上显示。

Sheets.Add.Name = "Calculated Values"

'Copy the data
ActiveSheet.Range("N3:Y34").Copy
'Activate the destination worksheet
Sheets("Calculated Values").Activate
'Select the target range
Range("A1").Select
'Paste in the target destination
Sheets("Calculated Values").PasteSpecial

Application.CutCopyMode = False

我尝试将代码从N3:Y34复制到新工作表“计算所得的值”上的A1,但没有用。我已经尝试过.Paste和.PasteSpecial,但是没有任何变化。 Sheets.Add.Name =“计算值”'...

excel vba copy range paste
1个回答
0
投票

您可以修改以下内容并尝试:

© www.soinside.com 2019 - 2024. All rights reserved.