Answers:
单击该单元格,然后单击F4。当您继续按F4时,它将在各种绝对值级别之间循环。
例:
我刚刚遇到过类似的问题,我需要对大量临时单元执行此操作
这段代码节省了我的理智:)
Sub selectedToAbsolute()
Dim c As Variant
For Each c In Selection
c.Value = Application.ConvertFormula(c.Formula, xlA1, , xlAbsolute)
Next c
End Sub
Sub selectedToRelative()
Dim c As Variant
For Each c In Selection
c.Value = Application.ConvertFormula(c.Formula, xlA1, , xlRelative, c)
Next c
End Sub