Results 1 to 3 of 3

Search through multiple excel files and get data

Threaded View

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Search through multiple excel files and get data

    Hi All,

    I'm currently using the following code to "pull" a range data from a closed workbook.

    Private Sub CommandButton1_Click()
    With Sheets("Sheet1").Range("H21:H38")
        .Formula = "='C:\Users\[Workbook1.xls]Sheet1'!M35"
        .Value = .Value
    End With
    End Sub
    This works well if I know which workbook and sheet I will be getting the info from. What I would like to do is add a function that searches through a few workbooks looking for a worksheet name that matches a value in a cell in my original workbook.

    ie. Workbook 1, cell A1 = "Jelly"

    search through excel files for the workbook that contains the worksheet named "Jelly" and then copy a range from that worksheet back to workbook 1.

    Does this make sense? Thanks for any help you can provide!
    Last edited by klunker; 03-10-2014 at 04:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 01-11-2013, 12:05 AM
  2. Search for a string in multiple excel files with multiple sheets
    By ghermanu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2012, 05:46 PM
  3. Replies: 6
    Last Post: 03-08-2011, 04:08 AM
  4. How to Search content of Multiple Excel Files?
    By camrencrew in forum Excel General
    Replies: 1
    Last Post: 04-07-2010, 03:38 PM
  5. [SOLVED] Search for text in multiple excel files
    By sc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2006, 09:45 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