+ Reply to Thread
Results 1 to 5 of 5

Marco to hide rows based on critera in another row

Hybrid View

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Marco to hide rows based on critera in another row

    I am attaching a very small portion of the spreadsheet (with altered data) that I need to hide the rows in. Basically you will see a row that only has data in COL A & O. I need a way to hide everything except these rows.






    excel forum.xlsx

  2. #2
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Marco to hide rows based on critera in another row

    Hello.

    Do you really need a macro to be able to do that? Can't you use a AutoFilter and select (for example in column B) blank cells only?
    And when you want to see Deselect the blank cells in the same column or remove the Autofilter.


    P.S: Maybe it's more complex than that and I did missunderstood your doubt. If that was the case, my apologies


    Kind Regards,
    FCarv
    Last edited by FCarv; 08-22-2012 at 12:35 PM.

  3. #3
    Registered User
    Join Date
    12-28-2011
    Location
    Scranton, PA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Marco to hide rows based on critera in another row

    actually that works, i didn't know blanks was at the bottom of the list. Thanks

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Marco to hide rows based on critera in another row

    Your welcome.

    Nevertheless you are able to run a macro in order to turn it on (Autofilter with the selection: blanks at column B) and off more easily, through a button.
    I may help you with that if you want. It doesn't sound too difficult.


    Kind Regards,
    FCarv

  5. #5
    Registered User
    Join Date
    08-17-2012
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    82

    Re: Marco to hide rows based on critera in another row

    Here goes the file. Hope it suits you.
    If you require to adapt it to your real file and for any reason are having problems, let me know.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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