Excel在职工档案工作表中怎么只显示某名职工的信息(请参看图片)
发布网友
发布时间:2024-10-24 03:12
我来回答
共1个回答
热心网友
时间:2024-10-26 09:43
vba可以实现,随便写下下,你可以参考,未调试过
Sub aa()
Dim rng As Range
Dim i As Integer
Dim j As Integer
Set j = Range("a65536").End(xlUp).Row
Row("4:j").Hidden = True
For i = 4 To j
If Cells(d, 1).Value = Cells(c, i).Value Then Row("i").Hidden = False
Next
End Sub