Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Autofilter

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Northern Ireland
    Posts
    113
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have a worksheet with about 35 columns in use Called Worksheet 'A'. I have autofilter switched on. I can filter this data for views which I then save to another workbook using a macro.

    The problem is that I need to be able to select the entire view (no filtered data) using VBA before I import new data into this sheet (Worksheet A).

    Can anyone offer any help? If I'm not making this clear enough, I will try to explain further.

  2. #2
    Board Regular
    Join Date
    Apr 2002
    Posts
    113
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try this:

    Set w = Worksheets("Sheet1")
    If w.AutoFilterMode Then
    ' If autofilter is on, toggle it off to reset
    w.Range("Range").AutoFilter
    End If

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    Northern Ireland
    Posts
    113
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks kmiles, works great

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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