+ Reply to Thread
Results 1 to 8 of 8

copy data from diff workbooks

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2003
    Posts
    3

    copy data from diff workbooks

    hello everyone

    I am looking for a vba code that willl help me collate data from multiple workbooks into one master workbook.
    The range to be copied from all the workbooks will be same. range a18:f18

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy data from diff workbooks

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Insert | Macro | Macros
    Select a macro in the list, and click the Run button
    Last edited by arlu1201; 11-15-2012 at 01:43 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: copy data from diff workbooks

    Thanks a Lot Arlette, This has been very useful... I just wanted some modification in the code

    If i can select the source work books through the open files menu &
    The data pasted in the master work book should be in paste special values

    Thanks & Regards,
    Bhima

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy data from diff workbooks

    The code has been edited to take care of pastespecial values. Do you want the macro to give the popup for each file to be opened?

  5. #5
    Registered User
    Join Date
    04-12-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: copy data from diff workbooks

    i need a popup to select all the required files at one go

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy data from diff workbooks

    Try this code
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-20-2012
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: copy data from diff workbooks

    I have a similar problem, I need to copy data from 3 different workbooks which have a tab with the owners name say Bill, Fred, Ann.

    worksheet are called Bill Cat Work Log.xls, Fred Cat Work Log.xls & Ann Cat Work Log.xla

    The data from each workbook needs to be copied into a master workbook called work log.xls with tab called results. A button on the results tab will run the macro

    Can anybody help?

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy data from diff workbooks

    Scousemouse,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.

+ 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