在 Workbook_SheetSelectionChange 里面加入以下代码
if Target.HasFormula then
Dim val as Variant
val = Target.DirectPrecedents.address
Range(val).copy
Else
Application.CutcopyMode = False
在 Workbook_SheetSelectionChange 里面加入以下代码
if Target.HasFormula then
Dim val as Variant
val = Target.DirectPrecedents.address
Range(val).copy
Else
Application.CutcopyMode = False