Results 1 to 5 of 5

Clear Filters on Exit

Threaded View

  1. #1
    Registered User
    Join Date
    02-22-2010
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    14

    Clear Filters on Exit

    Pretty new on VBA. Seems to be differnt syntax for declaring variables on Private function compared with Public.

    I have this macro which clears and switches off a specific filter in a specific sheet but because I want to to run on File/Exit I need to make it a Private function in This Workbook, but the syntax fail. Ideally I would like to clear and switch off all filtering in all worksheets.

    I'm sure it is very simple so if yu could supply the code it would be great and also perhaps link to the best explaination for the line one syntax for the Private function.

    Many thanks

    Sub ClearXDataFilterOnExit()
    '
    ' ClearXDataFilterOnExit Macro
    '
    
    '
        ActiveSheet.ShowAllData
        Selection.AutoFilter
    End Sub
    Last edited by beegeeblueboy; 02-25-2010 at 04:31 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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