+ Reply to Thread
Results 1 to 3 of 3

Combine data from 4 workbooks and then export filtered data to individual files?

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combine data from 4 workbooks and then export filtered data to individual files?

    Hello group!

    I am new to Excel macros and VB and working my way through this! I need to create individual Excel files for each of our resources to fill in their timesheets every week and wanted to find a faster/easier way to do it. I take the data from 4 separate excel files (project plans), combine the data into one, and then filter by person in order to copy/paste each person's data into separate excel files.

    Does anyone have any good strategies for automating this? It was fine doing it manually when we had 6 people, but we're up to about 20 now and it's getting out of hand!

    Thanks for your help!

  2. #2
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: Combine data from 4 workbooks and then export filtered data to individual files?

    Hi, womanket.

    Macros can be confusing when you first start. I suggest you try recording some macros (try to ensure you are using relative references, or the macro will be hard-wired to specific ranges) and then examine the macro to learn how they work.

    It is not difficult to copy data from several worksheets onto one, and you can easily record a sort. Following is a link to some other tips on recording macros:
    http://www.addictivetips.com/windows...ce-excel-2010/

    I often record a short macro to see what the recorder offers in order to discover the commnads needed. Another tool which can help is the object browser (select View/Object browser from the VB editor), as is the immediate window, which will let you experiment with some of the commands. Note that in the immediate window, you use "?" to print a line into the immediate window. thus, if you type Range("A1").Value, you will get an error, but ?Range("A1").Value will return the value in A1.

    Once you have some code, you step through it from the VB editor using F8 to execute a step at a time, and you can see the value of any variables from the Locals window. You can also watch what happens on the spreadsheet, if you are movving around or writing to the sheets.

    As you get better at coding, you will find that it's really more efficient to read data into variables and arrays, and then process those as needed and finaaly read the results back into a sheet as needed.

    There are a number of good resources to assist you in learning this. here are a few I'd recommend (in addition to this forum):
    http://www.cpearson.com/excel/mainpage.aspx
    Excellent site, many examples.
    http://www.decisionmodels.com/calcsecretsj.htm
    UDFs (and other subjects)
    http://www.contextures.com/tiptech.html
    General Excel Tips, Tricks, Tutorials, including video tutorials
    http://www.ozgrid.com/forum/index.php?
    Another forum. Same comment as above.
    http://excelvbatutor.com/vba_tutorial.html
    Tutorials.
    http://vbautomation.110mb.com/VBA/beginner_basic.htm (May be defunct)


    Hope this helps.

    If you need some more specific help with the project you are working on, feel free to post an example of what you are working with & what you are after & I'm sure folks on this forum will be willing to help.

  3. #3
    Registered User
    Join Date
    07-16-2013
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combine data from 4 workbooks and then export filtered data to individual files?

    Thanks, gjcase! I'll take a look at these sites and see if I can master some macros. Appreciate the advice!

+ 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. Export rows as individual files
    By fogster74 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2017, 11:32 PM
  2. [SOLVED] Need a Macro to grap individual data cells and check box data,Multiple files into single
    By Ghostwheel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2012, 04:42 PM
  3. Export Drop Down List Data to Individual Worksheets
    By adamsjk31 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2012, 04:38 PM
  4. Saving worksheets within workbooks as individual files
    By Colin Hayes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2006, 01:55 PM
  5. Copying individual files (workbooks) into worksheets
    By jay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2005, 02:05 PM

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