+ Reply to Thread
Results 1 to 4 of 4

Macro not Finding "blank" visible cells (when filtering

  1. #1
    Registered User
    Join Date
    08-16-2013
    Location
    Alb, NM
    MS-Off Ver
    Excel 2010
    Posts
    5

    Angry Macro not Finding "blank" visible cells (when filtering

    Hello there - This is my first post ever so I hope I am posting in the correct area.

    I have a macro which I am attempting to code to validate if filtered data is blank. So far, after many searches on the internet I've not turned up any code that can assist with this. The filtered data is formatted as "General" (ex of data "28 NDC").

    When filtering, if there is no data present, I want the macro to validate that the next visible cell is empty/blank. So far no attempts to use Count, CountA or anything have allowed me to succesfully traverse the visible cells, identify if cell is blank or not.

    If the data is not present, then the macro should use GoTo FDC: (next filtered value "26 FDC") and run the same validations. I have 23 "values" that this routine will have to run on, data will change in size from week to week, and total row count can exceed 500,000 lines, so I think that anything relying on "integer" is not sufficient.

    Here is my code:

    Please Login or Register  to view this content.

    ...more code (looping above code starting at 'NDC' but changing filtered values for other locations

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Macro not Finding "blank" visible cells (when filtering

    My VBA is weak, but is the cell really blank - as in, it contains nothing - or does it have a formula that is returning "nothing"? A cell w2itrh a formula in it, is not blank
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-16-2013
    Location
    Alb, NM
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro not Finding "blank" visible cells (when filtering

    The cells are truly blank. Basically I have "audit" reports, that I have already imported into a template, sometimes though a report will not generate (for various reasons) so unless there is a way to have the macro tell what values it has each week (dynamically and completely independent on its own), then it seems to be that the easiest way is to just have it check all values in a procedural manner.

  4. #4
    Registered User
    Join Date
    08-16-2013
    Location
    Alb, NM
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Macro not Finding "blank" visible cells (when filtering

    #Solved

    Found the code i needed on

    http://www.mrexcel.com/forum/excel-q...new-sheet.html


    Please Login or Register  to view this content.

+ 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] Copy cells from range "C3" to "F3" with loop and blank field
    By masterm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-16-2015, 01:03 PM
  2. [SOLVED] Macro to copy cells that contain not blank (≠"")
    By silentcarl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2015, 01:16 PM
  3. [SOLVED] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  4. [SOLVED] Replace all BLANK cells in column with header title "Balance" to "0"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 09:25 AM
  5. Error Message - .PivotItems("(blank)").Visible = True
    By srinuy2kin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2011, 02:48 PM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Macro to replace emplty cells with "(blank)" text
    By kapil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2010, 03:04 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