+ Reply to Thread
Results 1 to 4 of 4

Populate array using data from another workbook

  1. #1
    Registered User
    Join Date
    06-12-2014
    Posts
    2

    Populate array using data from another workbook

    Hi all,

    I am looking for a way to set up user input for file path

    MyInput = InputBox("paste file path here")

    Then using the file path entered here to select the sheet and column from that spreadsheet (sheet name and column will always stay the same only workbook name will change) and use that to populate an array which I can use in formulas in the excel sheet that launched the macro.

    Can anyone help me out with this please?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Populate array using data from another workbook

    You need to give us a little more info - what do you mean by "populate an array which I can use in formulas"? What array? What formulas?

    Anyway, this will get you started selecting the workbook...

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    06-12-2014
    Posts
    2

    Re: Populate array using data from another workbook

    Thanks for the start,

    for more information I need to pull the data into a look up array then use the =MATCH(C2,<array>)+1 function on the spreadsheet itself using a loopup array. looking at around 20,000 records.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: Populate array using data from another workbook

    Let's say that you want to fill cells D2:D??? with the formula to match the cells in column C:

    Please Login or Register  to view this content.

+ 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. Help! VBA code to open workbook and populate with data from previous workbook
    By musicman1985 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 11:46 AM
  2. Replies: 3
    Last Post: 01-22-2013, 03:22 PM
  3. How do I copy data from one workbook to create drop down lists in another workbook
    By mikeuk24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 05:08 PM
  4. [SOLVED] Extract data from one workbook and populate a separate workbook
    By gobeavers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2012, 05:45 PM
  5. Populate array dynamimically from a different Excel workbook
    By Bruce Tjosvold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 05:46 PM

Tags for this Thread

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