Alenliu

如图:

 

 1 Private Sub Worksheet_Change(ByVal Target As Range)
 2     On Error Resume Next
 3     Application.EnableEvents = False
 4     For Each c In Target.Cells
 5         With c
 6         For i = 1 To 30
 7          If Cells(i, 1) = 1 Then \'判断是否在第1列(a列)输入数据.
 8            Value = ""
10             End If
11                  
12             Next
13          End With
14     Next
15     Application.EnableEvents = True
16 End Sub

 

分类:

技术点:

相关文章:

  • 2021-11-24
  • 2021-11-15
  • 2021-12-17
  • 2021-11-27
  • 2021-09-10
  • 2021-12-07
猜你喜欢
  • 2021-08-06
  • 2021-08-12
  • 2021-11-29
  • 2021-10-28
  • 2021-11-19
  • 2022-01-03
相关资源
相似解决方案