+ Reply to Thread
Results 1 to 9 of 9

automate data collection in excel

  1. #1
    Registered User
    Join Date
    02-10-2009
    Location
    Taipei
    MS-Off Ver
    Excel 2003
    Posts
    4

    automate data collection in excel

    I am trying copy and paste data from an many excel files in a folder. The steps I am using to get data are as follows:

    1. I have a file called Summary.xls to collect all information from many excel files (File1.xls, File2.xls...) in a folder.

    2. Need to copy Entire rows in each excel file on the folder to Summary.xls, starting from Row35 (other files can have 100 rows below R35) and only if Column I has a value of "ADD", "DELETE", or "MODIFY". else move to next file.

    3. Need to add 1 blank row to seperate each file after copied to Summary.xls


    Managed to get a macro to run to parse the .xls files in a folder (from another forum)

    But cannot do the copy and pasting part. hoping someone can help me. Thanks in advance.


    ================
    Please Login or Register  to view this content.

    ==================
    Last edited by royUK; 02-10-2009 at 04:51 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: automate data collection in excel

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    I will add them this time, but read the Forum Rules before posting again
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: automate data collection in excel

    Hi
    Can you elaborate on
    starting from Row35 (other files can have 100 rows below R35) and only if Column I has a value of "ADD", "DELETE", or "MODIFY". else move to next file.
    Ravi

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: automate data collection in excel

    Maybe something like this
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-10-2009
    Location
    Taipei
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: automate data collection in excel

    Hi,

    Somehow the macro runs and opens the file in the folder, but it does not copy the required contents of the row's in the Summary.xls.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: automate data collection in excel

    Are the sheet references correct?

  7. #7
    Registered User
    Join Date
    02-10-2009
    Location
    Taipei
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: automate data collection in excel

    Hi,

    Yes the sheet references are correct, but still it is not getting the info i need.

    I have uploaded a sample template for you to have an idea which information i need.

    Basically, in this template i need to copy the rows 37 - 40 which has Column I value of ADD, DELETE or MODIFY.

    Some templates have more that 15 entries, so i need all of them, to copy in my Summary.xls.

    Thank you for helping me.
    Attached Files Attached Files
    Last edited by startstop; 02-10-2009 at 10:17 PM.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: automate data collection in excel

    See if this works
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-10-2009
    Location
    Taipei
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: automate data collection in excel

    Hi,

    Still not working. The macro opens the desired files on folder only but it does not select and paste the require information to another workbook (Summary.xls) ..

    Appreciate the time and help to solve my problem. Thanks.

+ 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