Excel:更改单元格时运行宏
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Excel:更改单元格时运行宏相关的知识,希望对你有一定的参考价值。
The easy way to set this up is to go to the macro window by pressing alt+F11.Select the sheet from left panel. there will be two drop down. from the left drop down select worksheet and from right drop down list select the event 'change'.
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$D$8" Or Target.Address = "$D$7" Or Target.Address = "$D$9" Then Call Module1.AutoGoalSeek End If End Sub
以上是关于Excel:更改单元格时运行宏的主要内容,如果未能解决你的问题,请参考以下文章