根据单元格选择进行相应统计输出
2021年10月28日
作者: 来源:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Address <> "$C$1" Then Exit Sub Application.DisplayAlerts = False With Target.Validation .Delete .Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _ xlBetween,Formula1:="求和,最大数,最小数,平均数," .IgnoreBlank = True .InCellDropdown = True .ShowInput = True .ShowError = True End With Application.DisplayAlerts = True End Sub
阅读:2598
上一则:如果基于某列字符对应的其它列最大值
下一则:如何把excel表格中公式的值转换为数字
|