excel如何设置单元格输入内容后自动显示输入内容并要求确定一遍

2024-12-04 10:59:04
推荐回答(2个)
回答1:

请输入完毕后按回车键,代码生效
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Value = "" And Selection.Offset(-1, 0) = "" Then Exit Sub
MsgBox "您刚输入的值为:" & Selection.Offset(-1, 0).Value & "请确认输入是否正确", vbInformation, "提示"
End Sub

回答2:

这个要用vba才行