+ Reply to Thread
Results 1 to 2 of 2

Merging data from several different spreadsheets

  1. #1
    Registered User
    Join Date
    08-08-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Merging data from several different spreadsheets

    Hi all, this is my first post and was wondering if anyone could help me out with my limited Excel VBA knowledge?

    Basically I have the attached spreadsheet several times with different info on each. If you look at the NonSap tab you will notice that data is present for the Elec Acquisitions process. Each different spreadsheet will have data for 1 or 2 of the processes.

    I have got some code that will loop through and get the names of all the spreadsheets, and open them one after the other, and I need some code that will identify which cells have been populated, and then copy them over to a master spreadsheet.

    If anyone can help I will be very grateful as I have been trying to get my head around how to do this for a while now!

    Cheers

    Luke
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Merging data from several different spreadsheets

    Your code works very well so far. You know where the top of the data range is, always starts at row11. If you add a variable to spot the bottom of the data on each worksheet, it makes copying to another sheet very simple. Here's a macro:
    Please Login or Register  to view this content.
    I've installed in your sheet and added a new button to run it. Pick a Process then click the new button.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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