+ Reply to Thread
Results 1 to 2 of 2

need help "worksheet_activate( )"

  1. #1
    ernie
    Guest

    need help "worksheet_activate( )"

    i need help using the autofilter function in my worksheet activate event
    procedure
    i'm using these parameters below:

    Private Sub worksheet_activate()
    Range("A1:C1").AutoFilter 2, "<>", , , False
    End Sub

    i want the worksheet to autofilter automatically when i select the sheet.
    i'm still getting errors i need help. can anyone help me with these codes??

    thanks in Advance
    --


  2. #2
    DS
    Guest

    RE: need help "worksheet_activate( )"

    Hi Ernie,

    Try:

    Private Sub worksheet_activate()
    Range("A1:C1").AutoFilter Field:=2, Criteria1:="<>", VisibleDropDown:=False
    End Sub

    This worked fine for me.

    HTH
    DS

    "ernie" wrote:

    > i need help using the autofilter function in my worksheet activate event
    > procedure
    > i'm using these parameters below:
    >
    > Private Sub worksheet_activate()
    > Range("A1:C1").AutoFilter 2, "<>", , , False
    > End Sub
    >
    > i want the worksheet to autofilter automatically when i select the sheet.
    > i'm still getting errors i need help. can anyone help me with these codes??
    >
    > thanks in Advance
    > --
    >


+ 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.6.0 RC 1