+ Reply to Thread
Results 1 to 3 of 3

skip hidden rows in loop

  1. #1
    Registered User
    Join Date
    06-23-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2010/2007
    Posts
    34

    skip hidden rows in loop

    Hi guys, i wrote a macro using a for loop which goes through all the rows of a specified column. How do you write a code such that if the current row is hidden, it will proceed to the next row?
    Please Login or Register  to view this content.
    produces an error.
    Last edited by secondrate; 07-11-2010 at 08:41 AM. Reason: Title for newbie pm message

  2. #2
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: "Continue" version (of C++) in VBA?

    Hi Secondrate,

    You should use something like:
    Please Login or Register  to view this content.
    If the row is hidden, it will omit all the code betwin If and End If.

    Resume Next is used for error hanlding :
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-23-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2010/2007
    Posts
    34

    Re: skip hidden rows in loop

    thanks for the tip!

+ 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