+ Reply to Thread
Results 1 to 3 of 3

Mystery line appearing in worksheet

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Mystery line appearing in worksheet

    Hi All,

    Apologies for the inconclusive title, but not sure how to describe my problem...

    Attached file has several tabs, "Overall sheet", "Pivot" and various data tabs (called "M68 xxxxxx").
    These data tabs all have the same header (line 1). Starting from line 2 and below, data is filled in.
    There is a macro in this file which pulls the data from these various tabs into the "Overall sheet".
    It then checks for duplicate serialnumbers etc.

    The problem starts when there is no data in the data tabs. Then in the "Overall sheet" the headers of these data tabs are shown for some odd reason. I can't figure out why it's shown there.

    What I need is that when there is no data in the data tabs, the lines in the "Overall sheet" are empty.

    Attached file has example data in the first 2 data tabs "M68 B661-4412" and "M68 B661-4697". The next 2 data tabs are empty.
    You see in the "Overall sheet" that the data from the first 2 data tabs are copied as it should, but in line 12 and 13, I have the headers of the other 2 data tabs.
    How can I adjust the macro so that these 2 lines are not shown?

    Hopefully the above is clear, if not, just let me know!!

    Thanks all in advance!!

    Kind regards,
    Peter
    M68_2.xlsm

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Mystery line appearing in worksheet

    Peter

    Check if there's any data before copying.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Re: Mystery line appearing in worksheet

    ah, perfect!! Thanks a million!

    Star earned...

    Regards,
    Peter

+ 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. Replies: 7
    Last Post: 08-20-2013, 03:59 PM
  2. Mystery red line?
    By Ricky_C in forum Excel General
    Replies: 4
    Last Post: 12-20-2007, 11:36 AM
  3. [SOLVED] Turn off header and footer from auto appearing in a new worksheet.
    By Numbersgirl in forum Excel General
    Replies: 0
    Last Post: 06-01-2006, 10:35 AM
  4. Worksheet Not Appearing
    By nabimomo in forum Excel General
    Replies: 1
    Last Post: 10-25-2005, 10:05 AM
  5. Line - Column Chart on 2 Axes - Line Not Appearing
    By Northpaw in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-22-2005, 11:01 AM

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