+ Reply to Thread
Results 1 to 2 of 2

If visible cells are empty, then skip to the next procedure?

  1. #1
    Registered User
    Join Date
    09-21-2021
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    87

    If visible cells are empty, then skip to the next procedure?

    Hello Excel Wizards

    I am needing help on two things.

    First:
    The below code is working to essentially copy data that would exist from filters to a new worksheet, and then save that worksheet. It may be clunky... but it works.
    Right now, if there is no data that appears in the filtered range, a workbook is created with just the header row. (So there are 4 files created for each value in Frandata.range("A" & Y) - but in some cases there may only need to be 1 file created.)
    What I am wanting to do, though, is make it so that if the filtered range does not show data, that it just moves on to the next set of data to filter.


    Secondly:
    Other than attaching a variable to the "ardata.Range(Cells(1, 1), Cells(arlrow, arlcol + 5))" range... is there anything else that I could do to optimize this part of the code?



    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-21-2021
    Location
    Los Angeles
    MS-Off Ver
    365
    Posts
    87

    Re: If visible cells are empty, then skip to the next procedure?

    Well folks... nevermind I think i figured out my own answer.

    Just in case anybody else is looking for how to do this, I added in a

    If / Then for

    If ardata.Range(Cells(1, 2), Cells(arlrow, 8)).SpecialCells(xlCellTypeVisible).Rows.Count > 1 Or ardata.Range(Cells(1, 2), Cells(arlrow, 8)).SpecialCells(xlCellTypeVisible).Areas.Count > 1 Then

    Proceed on.

+ 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] To skip empty cells & show blank cells if #DIV/0! error
    By mikehk in forum Excel General
    Replies: 3
    Last Post: 07-22-2020, 03:23 AM
  2. Replies: 0
    Last Post: 07-07-2020, 03:45 AM
  3. Randomizer skip empty cells
    By Loebe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2020, 05:00 AM
  4. skip empty cells from row
    By MrMyagiii in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2018, 07:23 AM
  5. [SOLVED] VlookUp must return value where first entry is and skip the empty cells
    By Colin Smit in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 11-13-2014, 11:17 PM
  6. Replies: 4
    Last Post: 03-08-2014, 02:03 PM
  7. Excel 2007 : VLOOKUP skip rows with empty cells
    By cl8390 in forum Excel General
    Replies: 3
    Last Post: 06-28-2011, 03:28 PM

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