Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count = 1 Then
If Target.Column = 1 Then
Application.ScreenUpdating = False
Sheets("表二").Select
ActiveSheet.Range("A:A").Select
Selection.ClearContents
Sheets("表一").Columns("A:A").AdvancedFilter Action:=xlFilterCopy, CopyToRange _
:=Sheets("表二").Range("A1"), Unique:=True
Sheets("表一").Select
Application.ScreenUpdating = True
End If
End If
End Sub作者: zpa33 时间: 2005-4-14 20:06
[em01][em02]