选择B,复制列,选择Y和“粘贴特殊”选择公式只应该做的工作
根据您的评论:
Private Sub Workbook_Open()
Range("Y:Y").FormulaR1C1 = Range("B:B").FormulaR1C1
End Sub
将完成这项工作(放入 ThisWorkbook 的宏)
在您的第二条评论之后:
Sub Workbook_Open()
On Error GoTo errLbl
xlCalc = Application.Calculation
Application.Calculation = xlCalculationManual ' stop calculation '
Application.ScreenUpdating = False ' disable screen update '
For Each c In Range("B:B")
Range("Y" & c.Row).Formula = Replace(c.Formula, "A", "D")
If c.Formula = vbNullString Then Exit For ' stop if "B" has no formula '
Next
errLbl:
Application.ScreenUpdating = True ' enable screen update '
Application.Calculation = xlCalc ' enable calculation back to where it was '
End Sub