+ Reply to Thread
Results 1 to 5 of 5

How to create a Macros that will filter and drop in different tabs

  1. #1
    Registered User
    Join Date
    12-31-2011
    Location
    Nogales, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to create a Macros that will filter and drop in different tabs

    Hello,

    I'm not the greatest when it comes to excel. I know how to use all the formulas but when it comes to using the Macros I don't really know how it works very well. I have a worksheet with a large database that changes weekly. What I want to do is create a Macros that will filter the database based on criteria and then drop it in a tab. The criteria that I want to filter by is in column N and it will be a name of a company, then I would like the filtered information to be dropped in another tab.

    Could anyone please help me? Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to create a Macros that will filter and drop in different tabs

    Yes, a very common request.

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.

    The parts to edit are in red, the variable named vCol should be 14 for column N.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-31-2011
    Location
    Nogales, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Talking Re: How to create a Macros that will filter and drop in different tabs

    Thank you for all the help this is exactly what I needed!

  4. #4
    Registered User
    Join Date
    12-31-2011
    Location
    Nogales, AZ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to create a Macros that will filter and drop in different tabs

    Quote Originally Posted by JBeaucaire View Post
    Yes, a very common request.

    'SHEET1 TO MANY SHEETS
    Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.

    The parts to edit are in red, the variable named vCol should be 14 for column N.
    I tried running it and I don't know if I messed up in something but just to be sure this will sort out of column 14 (once I change it) and drop in new tabs all in the same worksheet right?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to create a Macros that will filter and drop in different tabs

    The parts of the code you need to check are highlighted in red for you. Changing the vCol = 14 is obvious since you want to column of values to be column N, which is column 14. The rest you match to your workbook layout.

+ Reply to Thread

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