+ Reply to Thread
Results 1 to 5 of 5

Copy info from variable workbooks to a masterfile then loop

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    2

    Copy info from variable workbooks to a masterfile then loop

    Hi guys.

    I been looking through the internet for a similar code to tweak and use for what i want but i´ve had no luck

    Basically, what i have is a master file that needs to pull info from other sources (a simple copy and paste)
    those files are called Inventory_xxxx.xlsm . Inside the master file, there are cells with the number of the inventory.
    What i need is a way to tell excel to check what number is in the cell, open the files with that number, get the info from the files and paste it back in the master file... and the part that i consider the trickiest, a way to loop it.

    For example, lets say i have 2248 in cell A10, it should open Inventory_2248.xlsm copy the contents from cell N4,O4,P4,Q4,R4, and S4(Inventory File) into N10,R10,S10,T10 and U10 (Master file) respectively
    then in A11, there could be a 2250 so it should open the 2250 file get the info, paste it and so on.....

    now i dont even know if this is do-able or just impossible, been fiddling with various codes to no avail.
    Any kind of help would be incredibly appreciated
    Thanks in advance

    -Batuh
    Last edited by batuh; 04-30-2014 at 04:44 PM.

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Copy info from variable workbooks to a masterfile then loop

    Welcome to the forums!


    Nevermind I had to change my post. I saw a terrible flaw in the code. I'm tired.

    Please Login or Register  to view this content.
    Last edited by Jack7774; 04-30-2014 at 05:02 PM. Reason: had to change the code it was incorrect
    Thank those who have helped you by clicking the Star * below their name and please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Copy info from variable workbooks to a masterfile then loop

    Did this work for you?

  4. #4
    Registered User
    Join Date
    04-30-2014
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Copy info from variable workbooks to a masterfile then loop

    I just modified some cells and it worked!
    thanks for the help

  5. #5
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Copy info from variable workbooks to a masterfile then loop

    Awesome. I am glad it worked for you. Thanks for the rep.

+ 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. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  2. Needing Loop to copy/paste if there is info in the row
    By feephan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2011, 01:29 AM
  3. Linking info in workbooks based on a variable
    By jexcelnewb in forum Excel General
    Replies: 9
    Last Post: 02-09-2011, 02:49 PM
  4. Loop through named range and copy info into a combo box
    By Patronedheart in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2009, 10:41 AM
  5. loop to copy data from multiple workbooks into one
    By staffordalex in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-05-2008, 01:13 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