|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
参与一下:
- Option Explicit
- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.Address = "$B$2" Then
- Select Case Target.Value
- Case "普通镜片"
- If MsgBox("要执行:" & Target & " 吗?", vbOKCancel + vbInformation, "提醒") = vbOK Then
- MsgBox "好的,这就执行 " & Target & " !", vbInformation, "提醒"
- Else
- MsgBox "镜片太普通,还是不要了 !", vbInformation, "提醒"
- End If
- Case "有色腿镜片"
- If MsgBox("要执行:" & Target & " 吗?", vbOKCancel + vbInformation, "提醒") = vbOK Then
- MsgBox "好的,这就执行 " & Target & " !", vbInformation, "提醒"
- Else
- MsgBox "镜片腿好色,这可要不得 !", vbInformation, "提醒"
- End If
- Case "镜片工厂"
- If MsgBox("要执行:" & Target & " 吗?", vbOKCancel + vbInformation, "提醒") = vbOK Then
- MsgBox "好的,这就执行 " & Target & " !", vbInformation, "提醒"
- Else
- MsgBox "工厂套路深,我要回农村 !", vbInformation, "提醒"
- End If
- End Select
- End If
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|