+ Reply to Thread
Results 1 to 6 of 6

Filter months & generate new tabs from results

  1. #1
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Filter months & generate new tabs from results

    Hi all!

    I have an awesome snippet of code which looks at a column of months (mmm) & generates a new tab for each month then copies all rows using that month respectively. May be easier if you view my workbook attached. The problem I am having is the month colunm I will eventually have will be generated from column "B" which will have a series of full dates & the only way I can generate months as "mmm" is by using...
    Please Login or Register  to view this content.
    ...in column "G", sadly when I use a formula to achieve this my VBA doesn't work? Is there another way to make this work? Thanks for any help guys, as always much apreciated - Marc
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Filter months & generate new tabs from results

    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For interest sake...Another version of your code...
    Please Login or Register  to view this content.
    Last edited by sintek; 11-09-2020 at 03:41 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Filter months & generate new tabs from results

    Hi Sintek,
    My main sheet will have the code
    Please Login or Register  to view this content.
    populated down column "G" for 10,000 rows, sadly when the VBA code filters, it always filters a blank page for the month code...would there be a way of doing without the month code alltogether & generating a month tab from the current dates in column "B"? Thanks again Sintek - Marc
    Last edited by matrixpom; 11-09-2020 at 05:13 PM.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Filter months & generate new tabs from results

    All works with your sample file...What is different?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-22-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    329

    Re: Filter months & generate new tabs from results

    Hi Sintek,

    Sorry my mistake, works perfectly!! You're a legend! Marc

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Filter months & generate new tabs from results

    Glad you got it sorted...tx for rep +

+ 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] Help needed to generate & sort 2 lists of dates into months
    By Funkemduck in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-28-2019, 01:21 PM
  2. [SOLVED] Automatically Generate a number of months between two dates
    By TamHam in forum Excel General
    Replies: 5
    Last Post: 11-15-2017, 04:36 AM
  3. [SOLVED] automatically creating tabs for 12 months
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2014, 12:26 PM
  4. Generate New Workbooks from Existing Tabs
    By edorris3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 02:32 PM
  5. Copy pie chart into new tabs, and show the results from data on those tabs
    By Sydney Lee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-23-2012, 07:50 PM
  6. Replies: 3
    Last Post: 03-31-2010, 11:47 AM
  7. [SOLVED] HOW TO i HAVE OTHER CELLS GENERATE CONSECTUIVE MONTHS
    By Cathy in Florida in forum Excel General
    Replies: 1
    Last Post: 07-15-2006, 10:17 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