Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何";显示输入框“;每次在excel/vba中按特定单元格时?_Excel_Vba - Fatal编程技术网

如何";显示输入框“;每次在excel/vba中按特定单元格时?

如何";显示输入框“;每次在excel/vba中按特定单元格时?,excel,vba,Excel,Vba,当我按下Excel/VBA中的特定单元格时,我试图弹出inputBox 我尝试使用数组中存储的每个单元格的所有信息进行while循环。更改工作表选择很容易 Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address = "$A$2" Then InputBox ("HELLO") End If End Sub 请看一看这个活动。请添加更多的上下文。在文章中包含您编写

当我按下Excel/VBA中的特定单元格时,我试图弹出inputBox


我尝试使用数组中存储的每个单元格的所有信息进行while循环。

更改工作表选择很容易

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address = "$A$2" Then
        InputBox ("HELLO")
    End If
End Sub

请看一看这个活动。请添加更多的上下文。在文章中包含您编写的代码也可能会有所帮助。