컴퓨터/엑셀

vba 같은이름 필터

풍경소리^^ 2021. 5. 17. 15:46

Sub 필터같은예금주()
'
' 매크로1 매크로
'

' Ctrl + Shift + F
    Dim Find_Value As String

    
    Find_Value = ActiveCell.Value
    With ActiveSheet.UsedRange
        .AutoFilter ActiveCell.Column, Find_Value, xlFilterValues
    End With
End Sub
Sub 필터같은예금주모두보기()
'
' 매크로1 매크로
'

' Ctrl + Shift + A
'    Dim Find_Value As String
'
'    Find_Value = ActiveCell.Value
'    With ActiveSheet.UsedRange
'        .AutoFilter 11
'    End With
    With ActiveSheet
        If .FilterMode = True Then
            .ShowAllData
        End If
    End With
    ActiveCell.Activate
End Sub

'컴퓨터 > 엑셀' 카테고리의 다른 글

VBA 엑사남  (0) 2021.07.28
VBA 엑사남 배열  (0) 2021.07.28
vba 4열 공백 AutoFilter, 4열 기준 모두보기  (0) 2021.05.06
엑셀 셀안 특정문자 카운터  (0) 2021.04.20
vba 합계 application.function.sum vs 배열 합계  (0) 2021.02.20