我写了宏从一张纸到另一张的复印日期。
Sheet1.Cells(i, 3).Copy
Sheet1.Paste Destination:=Sheet2.Cells(erow, 1)
但在表1中是公式,我想只复制值。如何更改此代码以解决我的需求?
使用:
Sheet1.Cells(i, 3).Copy
Sheet2.Cells(erow, 1).PasteSpecial xlPasteValues
要么:
Sheet2.Cells(erow, 1).Value = Sheet1.Cells(i, 3).Value