xiangnan
Sub Sample()

    Dim sfzs As New Collection
    Dim ws, wbs, dbs As Worksheet
    Dim r As Long
    
    Set ws = ThisWorkbook.Sheets("Sheet 1")
    Set wbs = ThisWorkbook.Sheets("五保")
    Set dbs = ThisWorkbook.Sheets("低保")

    \'Set dg = ws.Range("c2:c37573")
    Set dg = ws.Range("c:c")
    \'Set dg = ws.Columns("C")
    
    Application.ScreenUpdating = False
    
    With wbs
        For r = 1 To 356
            If dg.Find(.Range("D" & r).Value) Is Nothing Then
                .Range("f" & r).Value = "没在"
            Else
                .Range("f" & r).Value = ""
            End If
        Next r
    End With

    With dbs
        For r = 1 To 1560
            If dg.Find(.Range("D" & r).Value) Is Nothing Then
                .Range("f" & r).Value = "没在"
            Else
                .Range("f" & r).Value = ""
            End If
        Next r
    End With
    
    Application.ScreenUpdating = True
End Sub

 

分类:

技术点:

相关文章:

  • 2021-09-21
  • 2021-12-05
  • 2021-05-23
  • 2021-12-05
  • 2021-05-20
  • 2021-07-29
猜你喜欢
  • 2021-12-15
  • 2021-11-23
  • 2021-11-06
  • 2021-12-05
  • 2021-12-02
  • 2021-12-05
  • 2021-12-15
相关资源
相似解决方案