+ Reply to Thread
Results 1 to 3 of 3

Modify code to pull from a different workbook

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Modify code to pull from a different workbook

    I need to modify the code below to pull information from a different workbook altogether, the one below I have to pull from a different worksheet within the same workbook.


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Modify code to pull from a different workbook

    Hi,

    Attached is the macro to combine different workbooks into one. But if you want to pull data from multiple worksheets in one workbook to other, you need to add some code to this macro.

    This macro pulls data from Sheet1 of all selected workbooks and merge into one worksheet of macro.

    CombineWorkbooks.xls


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    51

    Re: Modify code to pull from a different workbook

    Not exactly what I am looking for, I guess I needed to have explained it better.
    I use data from "file A" to fill in for "file b"

    I'd like to have a macro that moves data from cells in "file A" into other cells in "file B" selecting the row that holds all the information for the particular file, based column A which is our customer's purchase order numbers (could be any row) in "file A" and K3 which is also customer's purchase order number in "file B"

    The information from column B in "file A" needs to go to column L in "file B"; E to T; F to U; O to AA; P to AB

    Ideally I would type in the customer's purchase order number in "file B" cell K3, and the other information I need would be filled in from "file A" or could be that I type in the PO # and click a button to bring the data in.

    The code I listed above moves from sheet to sheet based on the customer's purchase order #, within the same workbook, but I need it from one workbook to another. I keep running into bugs, and can't figure out my errors.

    Thank you for your assistance.
    Last edited by AWITCHER; 07-22-2014 at 01:42 PM.

+ 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. Modify code to copy only set range instead of entire sheet to new WorkBook
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2014, 09:49 PM
  2. [SOLVED] Modify Existing Mbr Code to Save to Ext.Workbook
    By Miskondukt in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 03-06-2013, 02:36 PM
  3. VBA Code to modify printer duplex settings for one Sheet of a workbook
    By ben.collins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2012, 08:45 AM
  4. Changing Code To Modify Entire Workbook
    By sktyrhrtout in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-08-2008, 07:28 PM
  5. Modify This Code for WorkBook Loop
    By Pukka83 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 06-24-2008, 05:39 AM

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