+ Reply to Thread
Results 1 to 1 of 1

Giant merge macro with varying number of worksheets

  1. #1
    Registered User
    Join Date
    10-13-2014
    Location
    Hong Kong
    MS-Off Ver
    MS Office 2007-2010
    Posts
    1

    Lightbulb Giant merge macro with varying number of worksheets

    I need a VBA code that copies everything in each sheet in hundreds of workbooks. Each workbook may contain multiple worksheets or just 1. In addition to this, I need a column at the end of it to tell me which data came from which file (so that I can locate the file for double checking).

    I have collected a code that does something similar and edited it to do the multiple sheets bit.
    My changes to the original code (found elsewhere on the net), are:
    - new variable NBS, used for counting number of worksheets in external workbook
    - relate a to NBS in subsequent lines when copying
    - added in the count function

    I'm not my edits are ok or not, for now I haven't ran into errors (yet).
    Could someone kindly give it a double check?

    Many thanks in advance!


    Please Login or Register  to view this content.
    Last edited by Knighterist; 11-06-2014 at 11:36 AM.

+ 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. Help needed
    By LiewDickson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2013, 10:10 AM
  2. Complex Filter/Sorting Help Needed (VBA knowledge needed)
    By dfxryanjr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2013, 01:39 PM
  3. Help needed
    By javed65 in forum Excel General
    Replies: 1
    Last Post: 03-03-2013, 11:16 PM
  4. Conditional formatting needed for shape colour - is programming needed?
    By Farmboyuk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2012, 07:27 AM
  5. search engine tool problem with ending find, please help.
    By golden444 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2012, 11:36 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