Closed Thread
Results 1 to 5 of 5

Hide row if cell is empty

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Hide row if cell is empty

    Hi Guys

    I'm looking for a way to hide a row if the cell is column A is empty. On the attached sheet I'm looking to hide the empty rows below the last vehicle registration.

    Thanks In advance
    Attached Files Attached Files
    Last edited by JamesT1; 07-30-2009 at 12:49 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hide row if cell is empty

    Hello JamesT1,

    I added a Toggle Button to "Sheet1" to allow you to hide and view the rows. You can remove the button if you like and just the macros in your code. Here are the macros that have been added to the attached workbook.

    Toggle Button Macro
    Please Login or Register  to view this content.
    Hide Rows and Show Rows Macros
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Hide row if cell is empty

    hi Leith Ross

    Just what the doctor ordered, your help is very much appreciated

    JT

  4. #4
    Registered User
    Join Date
    05-25-2012
    Location
    Auburn, AL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Hide row if cell is empty

    Selections Summary 1 Sent.xlsm

    Hi Leith Ross,

    I need a similar code written and was wondering if you could help me out. I already have a macro written that Adds a new entry and sheet. All I need to complete it is to hide the rows and also to change the sheet name to whatever is in the location cell. I would greatly appreciate your help.

    Thanks,

    DN

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hide row if cell is empty

    Dhnorris89,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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