0
点赞
收藏
分享

微信扫一扫

VBA实现双击单元格自动输出对号再次双击取消对号

船长_Kevin 2022-07-31 阅读 109

VBA实现双击单元格自动输出对号再次双击取消对号

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
With Me
If ActiveCell.Value = "√" And Split(ActiveCell.Address, "$")(1) = "D" Then
ActiveCell.ClearContents
Else
If ActiveCell.Value <> "√" And Split(ActiveCell.Address, "$")(1) = "D" Then
ActiveCell.Value = "√"
End If
End If
End With
ActiveCell.Select
End Sub

举报

相关推荐

0 条评论