+ Reply to Thread
Results 1 to 4 of 4

Ignore the hidden rows from Count

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Ignore the hidden rows from Count

    Hi,

    I need to split the master copy to different sheets for 50 records each. There is hidden rows in the master copy. The code below is able to split the data but the no of records for each sheet is depends on the hidden rows. For examples, the second sheet will less than 50 records if there is a hidden row between. I need each sheet must has 50 records regardless the hidden records. I hope someone can help

    Thanks,
    Ling

    Please Login or Register  to view this content.
    Last edited by Apple Ling; 11-29-2012 at 03:03 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Ignore the hidden rows from Count

    While copying, copy records of 50 SpecialCells xlCellTypeVisible cells

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Ignore the hidden rows from Count

    I would do it this way:

    1) Have your macro apply the filter,
    2) Copy all visible data and paste into a new temporary sheet, this eliminates the hidden rows
    3) Let your macro run in the temp sheet to parse the data out
    4) Delete the temporary sheet
    5) Remove the filter
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: Ignore the hidden rows from Count

    I manage to solve the problem. Thank you

+ 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