如何使用单个单元格值运行vba。 [英] how to run vba with a single cell value.
本文介绍了如何使用单个单元格值运行vba。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过下拉选择更改但没有使用Worksheet_SelectionChange来运行单元格A1中的更改的vba。有可能吗?
I want to run vba with changes in cell A1 with a drop down selection change but with out Worksheet_SelectionChange . Is it possible ?
问候
推荐答案
您可以使用Worksheet_Change事件:
You can use the Worksheet_Change event:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("A1"), Target) Is Nothing Then
Application.EnableEvents = False
' Your code here
...
Application.EnableEvents = True
End If
End Sub
这篇关于如何使用单个单元格值运行vba。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文