nnsea 发表于 2023-10-26 22:21:31

限制某个区域工作VBA


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, ) Is Nothing Then
    MsgBox "你只能在区域中工作!"
    .Select
End If
End Sub
页: [1]
查看完整版本: 限制某个区域工作VBA