+ Reply to Thread
Results 1 to 2 of 2

Loop through a range to hide rows

  1. #1
    Registered User
    Join Date
    10-08-2008
    Location
    Orlando
    Posts
    5

    Loop through a range to hide rows

    I want to loop through a range. If any data exists on the row of the range from Column C over to the last column in use, I want to hide the row.

    I have questions about null and zero values in the cells. Cells can have either in a row of data. I am hiding zero values but I am assigning a zero value via a function for some cells.

    Using code from a post dealing with a similar problem, this is what I came up with.

    (Sorry if I was supposed to put this in tags. I didn't see the tags for the code on this forum.)
    Please Login or Register  to view this content.
    Please offer suggestions for my code.

    Thanks in advance.
    Last edited by Leith Ross; 10-20-2008 at 10:18 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
    Hello Utah_Jackson,

    To make your posts easier to read and preserve your formatting, please wrap your code. I did it for you this time. Here is how you can do it next time.

    How to wrap your Code
    On the Message window Toolbar you will see the # icon. This will automatically wrap the text you selected with the proper CODE tags to create a Code Window in your post. You can do this manually by placing the tag [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] at the end.

    As a new member please take so time to familiarize yourself with the Do's and Don'ts here in the Forum, just click on the
    link below...

    Forum Rules

    Sincerely,
    Leith Ross

+ 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. Hide rows with VBA
    By rs56369 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2008, 05:29 PM
  2. Use to Form to Hide Rows
    By jchambers00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2008, 10:56 AM
  3. Hide Rows based on dropdown selection...
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2008, 04:09 PM
  4. Replies: 1
    Last Post: 06-30-2007, 01:07 AM
  5. Looping through rows in range AND comparing range cells
    By Damask in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-16-2006, 10:30 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