+ Reply to Thread
Results 1 to 4 of 4

creates a filter and copies to new workbook, want user to select filter

  1. #1
    Registered User
    Join Date
    10-26-2007
    Posts
    55

    creates a filter and copies to new workbook, want user to select filter

    I've got a workbook with around 3000 lines of data, i'ver created a macro that filters under product list and then copies the the data to a new workbook.

    Macro that i have does that ok, what i'm trying to now do is to allow the user to select the filter somehow ie. userform and then select products(s) that they wish to be including in the new workbook.

    Not sure what the best way to do this is? any advise appreciated?

    Current code below, i've also attached a santised workbook

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by delboy2405; 01-24-2012 at 03:52 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: creates a filter and copies to new workbook, want user to select filter

    Hi delboy2405
    Try the code in the attached. Let me know of issues.

    PS: Sorry, I forgot to make the Named Range "Products" Dynamic. If you need help with that let me know.
    Attached Files Attached Files
    Last edited by jaslake; 01-23-2012 at 04:10 PM. Reason: Added PS
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    10-26-2007
    Posts
    55

    Re: creates a filter and copies to new workbook, want user to select filter

    Hi Jaslake, that looks great I must say, pretty much what I was thinking. Do you have any good sites with tutorials on user forms etc as ideally i would like to be able to make that myself.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: creates a filter and copies to new workbook, want user to select filter

    Hi delboy2405

    Have to be honest with you, what I know (which is not a lot compared to the talent on this Forum) I've learned by doing and by doing Google searches. I have one book to which I refer not often...John Walkenbach's Excel 2007 Power Programming with VBA.

    There is a Thread in this Forum that has many, many references to Resource Materials but I couldn't find it tonight to give you a reference...sorry. Good luck and good hunting.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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