+ Reply to Thread
Results 1 to 3 of 3

ignore header row on blank worksheet on consolidate

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Question ignore header row on blank worksheet on consolidate

    Hi,

    I am attempting to consolidate multiple worksheets into one. The consolidation works fine on worksheets that have data however, as in my example file, there are worksheets which are presently blank (empty of data) - save for the header row.

    The problem:

    On consolidation, the header row from the "Empty" worksheet becomes a row in the "master" worksheet that is created. How can a worksheet without data be ignored on consolidation?

    Any help would be great. Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-13-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: ignore header row on blank worksheet on consolidate

    You can skip importing by checking is worksheet empty or not!!

    HTML Code: 
    here ws refers to worksheet.

    Cheers!!

  3. #3
    Registered User
    Join Date
    04-23-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: ignore header row on blank worksheet on consolidate

    Thank you in.vaibhav for putting me on the right path.

    I managed to add this code which ignores the header row in my example

    Please Login or Register  to view this content.

+ 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. Need to copy header row in group to all rows below header; stop if blank and repeate
    By jmcaleer10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2013, 11:09 AM
  2. Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"
    By cyee in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-29-2012, 06:22 AM
  3. Ignore header row on .csv
    By guerillaexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 12:29 PM
  4. Replies: 5
    Last Post: 08-10-2006, 01:10 AM

Tags for this Thread

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