+ Reply to Thread
Results 1 to 3 of 3

Button to add or remove table filters and button to refresh table

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Button to add or remove table filters and button to refresh table

    I need a code that I can add to a Button (Form Control) that will remove or add the filters to a table. I also need a code to add to a button to refresh the table.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Button to add or remove table filters and button to refresh table

    Look at this link for the refresh syntax

    https://msdn.microsoft.com/en-us/lib.../ff838648.aspx

    We will need more information on the other issue. Range of the table/range you wish to filter/unfilter, etc.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: Button to add or remove table filters and button to refresh table

    My apologies I failed to mention I know pretty much nothing about VBA. I right clicked on my button and went in to view code and the following is displayed: :"Private Sub CommandButton1_Click()" and then a space and then "End Sub" Do I place "Workbooks (3). RefreshAll between these? What am I missing? As for my other issue the Range of my Table is A4:O15000. I'm not sure if it will matter but this particular table is from a data connection to my Access Database. Thanks

+ 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. [SOLVED] Refresh data table filters on worksheet activation
    By BuZZarD73 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2014, 06:45 AM
  2. Refreshing Data Table on Sheet2 via a Refresh Button on Sheet1
    By Domondios in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2014, 07:09 AM
  3. Refresh pivot table Filters
    By protocol in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2011, 10:01 AM
  4. Button to refresh a pivot table in Worksheet
    By sqledge in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2011, 03:05 AM
  5. Macro/command button to reset all filters in pivot table
    By schueyisking in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2008, 11:30 AM

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