+ Reply to Thread
Results 1 to 5 of 5

Macro to hide rows based on ISBLANK condition

  1. #1
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Macro to hide rows based on ISBLANK condition

    Good morning,

    I need a macro to automatically hide rows based on the condition that a cell is blank.

    For example, if cell A3 is blank in the range A1:A10, hide row 3.
    The range is important, as i only want the macro to operate within the range.

    Thanks

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Macro to hide rows based on ISBLANK condition

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Macro to hide rows based on ISBLANK condition

    Getting an "subscript out of range" error on
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Macro to hide rows based on ISBLANK condition

    Never mind got it to work,

    Code works great!

    Thanks

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Macro to hide rows based on ISBLANK condition

    You did change the worksheet name, didn't you?!

+ 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. Macro copies rows based on condition, BUT rows copy in Wrong order. PLEASE HELP!
    By JAllard1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2014, 04:33 PM
  2. Need help creating macro to hide rows based upon whether 1 of 3 rows have data
    By BigEdJr in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-17-2014, 02:58 PM
  3. How to Hide/Unhide rows based on condition
    By Kfir7 in forum Excel General
    Replies: 33
    Last Post: 01-07-2013, 12:55 PM
  4. Macro to delete all rows based on one condition
    By vemix in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2012, 05:24 AM
  5. Hide rows based on a condition
    By KimberlyH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2006, 04:10 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