+ Reply to Thread
Results 1 to 2 of 2

VBA - Auto Filter and make new sheets based on the filter values- Loop

  1. #1
    Registered User
    Join Date
    02-23-2014
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    73

    VBA - Auto Filter and make new sheets based on the filter values- Loop

    Dear Experts!

    I am in need of a macro that can save my time to split the main database based on an auto filter macro functionality.

    I have created a sample macro for your better understanding.

    Just to summarize

    1. Autofilter and create new worksheets based on the filter value with keeping the same format of the original file.
    2. AutoFill Destination Range("A5: A6") to the end of the column.
    3. Loop the process until the filter fields get over.
    4. Filter Range will vary. (Range("C4:AT12").Select)). So macro should find the end of the range automatically.
    ----------------------------------------------------------------------------------------

    Please Login or Register  to view this content.
    ----------------------------------------------------------------------------------------

    I have done a test and created the following code:

    Please Login or Register  to view this content.

    Unfortunately, the macro is not copying the range i need to Paste on the newly created sheets. My filter Row Range is from A6 till AT6. The range i need to copy to new sheets starts from C4 till AT and end of the range.

    I have attached the sample file for your closer review.

    Can any one help me to fix this.


    Thanks in advance!
    Attached Files Attached Files
    Last edited by Paul Cherian; 07-25-2017 at 04:54 AM.

  2. #2
    Registered User
    Join Date
    02-23-2014
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: VBA - Auto Filter and make new sheets based on the filter values- Loop

    Any helps!

+ 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] Add multiple criteria to auto filter one by one via loop from a range / array
    By Ronnet2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2016, 07:25 AM
  2. [SOLVED] Excel 2007-Adv Filter Copy and Loop with Nested Autofilter Using Values from Adv Filter
    By Southfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2014, 02:07 AM
  3. [SOLVED] Creating a Filter loop based on unique values in a column
    By Ragnarok_421 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2014, 05:34 AM
  4. [SOLVED] Auto Filter Loop
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2014, 02:39 AM
  5. Filter Several Sheets Based On Another Sheet Filter
    By VintuBr in forum Excel General
    Replies: 6
    Last Post: 12-06-2013, 10:40 AM
  6. Need help creating custom sheets based on auto filter results
    By trow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2012, 04:10 PM
  7. Replies: 3
    Last Post: 05-19-2005, 08: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