+ Reply to Thread
Results 1 to 4 of 4

macro to hide rows if cell is blank, unhide if it contains text

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Powell, near Knoxville, TN
    MS-Off Ver
    Office 2010
    Posts
    26

    macro to hide rows if cell is blank, unhide if it contains text

    I apologize for posting three times in one day. I'm trying to learn the art Excel manipulation.

    I'm using a macro to do the following:

    Hide rows 45 through 94 if cell R44 contains nothing
    Unhide rows 45 through 94 if cell R44 contains any text

    That's it. It is simple but I keep missing something, The workbook is protected but cell R44 is not. No formula in the cell.

    Thanks for the help. This is what I have but it isn't working.

    Please Login or Register  to view this content.
    Also, I need for it to run automatically each time the value of R44 changes,

    Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: macro to hide rows if cell is blank, unhide if it contains text

    Hi Russ,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Powell, near Knoxville, TN
    MS-Off Ver
    Office 2010
    Posts
    26

    Re: macro to hide rows if cell is blank, unhide if it contains text

    Thanks Robert. It worked...almost. The results are the opposite of what I wanted. So I reversed the True and False and it works perfectly.

    Thanks again. I've been stuck on this thing for two days. Wasted a lot of time.

    Thanks again.

    Russ

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: macro to hide rows if cell is blank, unhide if it contains text

    Thanks for letting us know and for marking the thread as solved (and for adding to my reputation )

    Regards,

    Robert

+ 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. simple macro to hide or unhide rows based on a cell value
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2013, 06:32 PM
  2. Macro to Hide/Unhide Multiple Rows Based on Cell Value
    By mbp727 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 11:12 AM
  3. Macro Hide/Unhide rows dependant on cell value
    By lbanham in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-12-2013, 01:27 AM
  4. Insert/delete rows or unhide/hide if cell Contains Certain text
    By ashhm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2012, 08:52 AM
  5. [SOLVED] Hide unhide blank rows?
    By jeff p in forum Excel General
    Replies: 6
    Last Post: 04-03-2012, 09:48 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