+ Reply to Thread
Results 1 to 2 of 2

Thread: Filter problems

  1. #1
    Berry
    Guest

    Filter problems

    H=E9=E9, what is wrong with my filter?

    I've a code in my excel file following:
    Dim X As Boolean


    Private Sub Worksheet_Calculate()
    Dim R As Long
    If X =3D True Then Exit Sub
    X =3D True
    For R =3D 1 To Cells(65535, 3).End(xlUp).Row
    Select Case Cells(R, 3).Value
    Case "", 0, "C"
    Me.Rows(R).Hidden =3D True
    Case Else
    Me.Rows(R).Hidden =3D False
    End Select
    Next
    X =3D False
    End Sub

    But now my filter don't work anymore!

    Who can help me with this problem??

    Greets Berry


  2. #2
    Tom Ogilvy
    Guest

    RE: Filter problems

    Check the value of X. Is it set to True?

    --
    Regards,
    Tom Ogilvy


    "Berry" wrote:

    > Héé, what is wrong with my filter?
    >
    > I've a code in my excel file following:
    > Dim X As Boolean
    >
    >
    > Private Sub Worksheet_Calculate()
    > Dim R As Long
    > If X = True Then Exit Sub
    > X = True
    > For R = 1 To Cells(65535, 3).End(xlUp).Row
    > Select Case Cells(R, 3).Value
    > Case "", 0, "C"
    > Me.Rows(R).Hidden = True
    > Case Else
    > Me.Rows(R).Hidden = False
    > End Select
    > Next
    > X = False
    > End Sub
    >
    > But now my filter don't work anymore!
    >
    > Who can help me with this problem??
    >
    > Greets Berry
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0