+ Reply to Thread
Results 1 to 2 of 2

VBA for Autofilter linked with combo box

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    VBA for Autofilter linked with combo box

    Hi

    i have tried to link the two tables with a combo box. But vba is not working. Please help me.


    Sub Macro8()

    Sheets("BankBook").Select
    ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=1, Operator:= _
    xlFilterValues, Criteria2:=Array(2, "h1")
    Sheets("CashBook").Select
    ActiveSheet.ListObjects("Table2").Range.AutoFilter Field:=1, Operator:= _
    xlFilterValues, Criteria2:=Array(2, "h1")
    End Sub
    Attached Files Attached Files
    Last edited by Baldev Kumar; 09-16-2016 at 09:01 AM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA for Autofilter linked with combo box

    In tables, columns with dates not format as date but custom made "dd/mm/yyyy"

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Images Attached Images
    Attached Files Attached Files

+ 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. Combo box linked with arrays
    By SPCM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2014, 05:17 PM
  2. Can Combobox linked to Autofilter?
    By lnk2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2011, 04:50 PM
  3. Excel 2007 : Combo box or autofilter
    By sms2luv in forum Excel General
    Replies: 25
    Last Post: 02-02-2011, 11:41 AM
  4. autofilter criteria linked to cell reference
    By mrmiddleman in forum Excel General
    Replies: 1
    Last Post: 08-15-2007, 03:28 AM
  5. macro linked to combo box
    By minkus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2007, 06:31 PM
  6. Refreshing AutoFilter in Linked Worksheets
    By EonZ in forum Excel General
    Replies: 3
    Last Post: 07-13-2006, 03:43 PM
  7. Linked Combo Boxes
    By LRobinson3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2005, 09:40 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