+ Reply to Thread
Results 1 to 4 of 4

Macro - Merge 16 sheets, first row problem on empty sheet. Please help.

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    Athens
    MS-Off Ver
    Excel 2010
    Posts
    55

    Smile Macro - Merge 16 sheets, first row problem on empty sheet. Please help.

    Hello, i have a working macro whose job is to merge 16 sheets in a new sheet named "Master".

    Everything working fine, except that if one of sheets is empty, copies the first row, but as everyone knows the first row is Headers and i don't wont to copy it.

    I need assistance with this Macro: when a Sheet is empty by the second line and down I do not want to copy at all.


    Please help me with this, i have attach a sample file with the macro on it.
    As you can see in my Sample, the Sheet 9 is empty and if you run the macro you will see that in the last Sheet that macro creates, named "Master", at Row 29 copies the headers from Sheet 9, i don't want that.

    Sample.xlsm

    I am sorry for my bad English, i need help with that. Thanks.

    Also here is the macro:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Macro - Merge 16 sheets, first row problem on empty sheet. Please help.

    maybe so (not tested)
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro - Merge 16 sheets, first row problem on empty sheet. Please help.

    Try the attached.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2013
    Location
    Athens
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Macro - Merge 16 sheets, first row problem on empty sheet. Please help.

    Quote Originally Posted by nilem
    maybe so (not tested)
    Quote Originally Posted by AB33 View Post
    Try the attached.
    Its working thank you so match... Thanks.
    ~Our technology has exceeded our humanity~

+ 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. Small Macro Problem..? Copy 20 cells from multiple sheets to one sheet
    By AbhijeetM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2013, 02:38 AM
  2. Merge multiple sheets into one Sheet
    By vijaybharthi in forum Excel General
    Replies: 15
    Last Post: 11-07-2012, 08:19 AM
  3. Difficult Problem - Merge Cells from multiple sheets !!!!
    By DraganVel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2012, 09:18 AM
  4. Merge two sheets and create a third sheet
    By CHAITU in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2010, 05:36 AM
  5. Merge data from different sheets into one sheet
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2009, 12:43 PM

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