Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Meger multiple file but header not same

  1. #11
    Junior Member
    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0

    Merge multiple file but header not same

    Thanks buddy, now it is working....
    Last edited by Admin; 10-25-2012 at 07:50 PM.

  2. #12
    Junior Member
    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0

    Merge multiple file but header not same

    Hi

    I have run this macro and it is working fine. But there is blank row coming in consolidated sheet after sheet data. For example one workbook data is pasted in consolidated sheet and then one row left blank. Then second workbook data is pasted and then one row blank. There thirty row leave blank because thirty file to consolidate.

    Seondly the formating of sheet is not proper way. Is there any way to consolidate the data as value so that cell size does not change.

    Quote Originally Posted by rocky View Post
    Thanks buddy, now it is working....

  3. #13
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    After the line 'Loop' insert the following line.

    Code:
    dest.EntireColumn.SpecialCells(4).EntireRow.Delete
    also replace this line

    Code:
    .Range("a2:as" & j).Copy Dest
    with

    Code:
    .Range("a2:as" & j).Copy
    dest.PasteSpecial -4163
    dest.PasteSpecial -4122
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  4. #14
    Junior Member
    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0

    Merge multiple file but header not same

    Hi

    I am getting the following error again and again

    There is large amount of information on the Clipboard. Do you want to be able to paste this information into another programe later.

    To save it on the Clipboard so that you can paste it later, click Yes
    To delete if from the Clipboard and free memory, click no.
    Last edited by Admin; 10-25-2012 at 09:08 PM.

  5. #15
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Don't quote the replies.

    add this line

    Application.CutCopyMode = False

    before this line

    wbkSource.Close 0
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Similar Threads

  1. Replies: 1
    Last Post: 06-07-2013, 10:32 AM
  2. Loop Through And Delete Multiple File Types In A Folder
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 03-30-2013, 04:47 PM
  3. Replies: 1
    Last Post: 03-07-2013, 11:42 AM
  4. Consolidate multiple workbooks from a folder into one master file VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 4
    Last Post: 02-26-2013, 09:00 PM
  5. Sort Data When a Header Is Clicked
    By Rasm in forum Excel Help
    Replies: 9
    Last Post: 08-01-2012, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •