+ Reply to Thread
Results 1 to 2 of 2

Skip to next worksheet/workbook when filtered result is '0' or blank

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Kuching, SARAWAK
    MS-Off Ver
    Excel 2010
    Posts
    116

    Skip to next worksheet/workbook when filtered result is '0' or blank

    Hello Excel Experts,

    I found some great sets of macro that allows below actions:-

    1. From ThisWorkbook, open another workbook containing data
    2. In ActiveWorkbook, filter some rows of data based on criteria
    3. When filtered results exist, delete those unmatched then copy the matched ones into a new worksheet in ThisWorkbook
    4. Do the same step 2 & 3 for next sheet in the ActiveWorkbook (if any)
    5. Close ActiveWorkbook without Save
    6. Move ActiveWorkbook into folder named "Done"
    7. Repeat Step 1 to 6 until no more files in the directory/path

    However, what I would like to achieve is if no result during filtering, it supposed to skip that ActiveWorksheet then go to next sheet but if there's no result for entire ActiveWorkbook, it will close without save the ActiveWorkbook but doesn't move it into "Done" folder.

    As for now, my macro will stop and prompt me the worksheet that has no result. It will not continue as long as I didn't close it and rerun the macro manually.

    Any help would be appreciated as I would need to loop through 800 files at a time without having to wait in front of the PC. Else, it won't be so practical.

    Thank you in advance.

    DZ

  2. #2
    Registered User
    Join Date
    04-07-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    34

    Re: Skip to next worksheet/workbook when filtered result is '0' or blank

    Hi DZ,

    If you could share your existing macro, will try to figure out your problem

    Thanks & Regards,
    Vidhya

+ 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 date to blank cell of a filtered worksheet
    By wmolitor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 05:51 PM
  2. [SOLVED] Skip Row if result is blank
    By peterpan1279 in forum Excel General
    Replies: 4
    Last Post: 03-23-2014, 09:46 PM
  3. Replies: 1
    Last Post: 02-02-2014, 11:09 PM
  4. index match, ..... skip result if blank value ...... jump to next match
    By gehawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 04:42 AM
  5. [SOLVED] can't get macro to skip worksheet if row 2 is blank...
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2012, 05:10 AM
  6. [SOLVED] Macro to filter active ws in workbook and paste filtered result in "result" worksheet
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2012, 12:01 PM
  7. Copying filtered data from one worksheet to a worksheet in another workbook
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2011, 09:13 AM

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