JoePotter
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target  As Range)
If Not Application.Intersect(Target, Range("F10:M26,D2")) Is Nothing Then
MsgBox ("禁止粘贴内容!,请双击后输入内容!")
Application.CellDragAndDrop = False
Else
Application.CellDragAndDrop = True
End If
End Sub
Private Sub Worksheet_Deactivate()
Application.CellDragAndDrop = True
End Sub

 注意:Range("F10:M26,D2") 为指定的禁止粘贴的区域。只能手动输入。

分类:

技术点:

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2021-12-31
  • 2021-11-07
  • 2022-12-23
  • 2022-01-04
  • 2021-12-31
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案