+ Reply to Thread
Results 1 to 2 of 2

Auto filtering

Hybrid View

sejfest Auto filtering 05-06-2016, 06:30 AM
sejfest Re: Auto filtering 05-09-2016, 04:06 AM
  1. #1
    Registered User
    Join Date
    05-06-2016
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    10

    Auto filtering

    Hi all

    I have an issue with the excel filters.

    When I reopen my excel sheet is has forgot my defined filters. It is still checked if I open the drop-down, but not filtered before I press OK again.

    Anyone who can help, so it automatically uses the defined filters?

    Thanks

  2. #2
    Registered User
    Join Date
    05-06-2016
    Location
    Denmark
    MS-Off Ver
    2013
    Posts
    10

    Re: Auto filtering

    I have used this code, but cannot make it work. Just pasted it in the "view code" window.

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Me.FilterMode = True Then
    With Application
    .EnableEvents = False
    .ScreenUpdating = False
    End With

    With ActiveWorkbook
    .CustomViews.Add ViewName:="Mine", RowColSettings:=True
    Me.AutoFilterMode = False
    .CustomViews("Mine").Show
    .CustomViews("Mine").Delete
    End With


    With Application
    .EnableEvents = True
    .ScreenUpdating = True
    End With
    End If

    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. auto-filtering
    By mabughazza in forum Excel General
    Replies: 1
    Last Post: 05-13-2013, 08:31 AM
  2. Auto Filtering
    By dtaganovic16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2012, 03:13 PM
  3. Help with auto filtering
    By logan131 in forum Excel General
    Replies: 0
    Last Post: 07-05-2012, 09:26 PM
  4. Possible to do auto-numbering after auto filtering?
    By hello_lpc in forum Excel General
    Replies: 1
    Last Post: 11-10-2009, 03:18 AM
  5. Auto filtering?
    By jhelliar in forum Excel General
    Replies: 19
    Last Post: 01-30-2008, 11:27 AM
  6. problem with auto filtering
    By alexbutterfield in forum Excel General
    Replies: 1
    Last Post: 03-20-2007, 06:00 AM
  7. [SOLVED] Advanced Auto Filtering
    By Connie in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM

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