+ Reply to Thread
Results 1 to 2 of 2

Calling AutoFilter from Listbox

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Calling AutoFilter from Listbox

    Hi Gurus!,

    What I'm trying to achieve is to have 3 cascading listboxes, that filter out data as selections are made. I got a code that filters, copies and pastes filtered results onto another sheet, where listboxes pick their data from. So I'm trying to call macro from listbox_click. It works for the first listbox, but if I call the same macro from another listbox - it throws an error on red highlighted below:

    Please Login or Register  to view this content.
    Question, how do I employ the second listbox to complete cascade? Sample attached...

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Calling AutoFilter from Listbox

    The issue may occur on this line because you have already applied AutoFilter so you don't need that line in second time round.

    What happens if you Debug and comment out that line with '
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

+ 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] Autofilter result in Listbox
    By Wijnand1 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 02-26-2017, 07:38 AM
  2. [SOLVED] AutoFilter and Subtotal (differences in the result by calling the way)
    By kamijo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2016, 07:00 PM
  3. Autofilter range into listbox
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 12:47 PM
  4. calling cell number from header title and then applying autofilter
    By sameerk0286 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2010, 04:45 AM
  5. Autofilter using ListBox problem when protected
    By kennysnow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2007, 04:15 AM
  6. Fill listbox after autofilter has been applied
    By bdn435 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2007, 02:29 AM
  7. Autofilter and Listbox how to acomplish?
    By jose luis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2005, 02:06 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