Excel with VB filtering inquiry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manne
    New Member
    • Aug 2007
    • 1

    Excel with VB filtering inquiry

    Hello everyone,

    Good Day!

    I am new to posting, forums and I would like to ask for help.
    I have been working on this assignment in Excel. I have tried to create button on top of my worksheet that will filter the desired category but it run so slow

    see below the code.

    Private Sub CommandButton1_ Click()

    Rows.Hidden = False
    Counter = Range("A1").Val ue + 4
    For i = 4 To Counter
    If Cells(i, 14).Value <> "CJSL" Then
    Rows(i).Hidden = True
    End If
    Next

    End Sub



    If someone can help me enhance my excel vbcode to make it faster it would be extremely appreciate it. If not can someone direct me in the right direction.

    Thanks Everyone,
    Manne
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    You'll probably want to repost in the Visual Basic Forum for faster response. And while you are browsing the site, check out our Posting Guidelines. Thanks.

    Comment

    Working...